Quantcast
Channel: Getting started with SQL Server forum
Browsing all 9243 articles
Browse latest View live

finding minutes part in sql

i wrote this code to find difference between TotalRequiredHours - TotalHoursWorked =192 - TotalHoursWorked=186:04 gives result = 5.933334, , it returns result, Hours are right but minutes part seems to...

View Article


Error converting type

my code throws error:Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to float.Code:ALTER FUNCTION [dbo].[GetPayDeducted] ( @emplID int, @month VARCHAR(50) = NULL ) RETURNS int AS...

View Article


Binary Search Tree in SQL?

hi... can i use Binary Search Algorithm using SQL? how can i use recursive procedure?maifs

View Article

How to Create new database (copy all table with data excluding 2 table )with...

Please follow the scenario: using C# 1) current database file name is DB20122013. when user click on new year button 2)Create backup copy of current database 3)New database should create with all...

View Article

Microsoft text driver or access CSV file directly

Hi, Every search hit that I found told me that I need the "Microsoft text driver" to access CSV file directly. And here is the sample code within SSMS:select*fromopenrowset('MSDASQL'...

View Article


sql server memory issue

One sql server box: SYstem administrator pointed out: SQL server almost uses all memory and server memory usage almost hits 100%How to fix this problem?

View Article

I have recently been asked to research information for the following.

I have recently been asked to research information for the following.Add a backend SQL server to the current Access 2010 set up we have in place as the front end, for 11 users.Upgrade to Access 2013...

View Article

SQL server wrong Row Number is showing

here is my sqlSELECT*FROM(SELECT Row_number()OVER(ORDERBY[bbajobs].JID)AS RowNumber,[BBAJobs].[JID],[AccountReference]as[Acc...

View Article


return 0 when value is greater than mentioned

i wrote this query to find difference between TOTALREQUIREDHOURS and TOTALWORKDEDHOURS, it works e.g. 192-186:05= 5:55 but problem is if TotalWorkedHours are greater than totalRequiredHours then it...

View Article


Image may be NSFW.
Clik here to view.

Dump Files causing space issue in SQL Server.

Hi All,Disk is filled due to some dump files and these files are .txt, mdmp and log files. Do you have any idea about these files and how to minimize these files.Grateful to your time and support....

View Article

SSAS Setup Step keeps giving a "folder path specified is invalid" error message

HiI have managed to install SQL Server 2012 (for the first time) by skipping over the Analysis Services step which keeps giving me an error message about the Data Directory file path being invalid,...

View Article

query to return data from three tables

Hi All,I have three tablestable1 ID      value11       abctable2ID    link_ID                 ref_type               object_ID1       ID of table1(1)        hyperlink         1212        ID of table2...

View Article

Print a DayName without using Date functions

Hi,I have an assignment like without using any date functions i should print a calendar.Below is the code without using any datefunctions like dateadd, datediff, datename a calendar has been generated...

View Article


for xml path sorting based on input flow

I need to sort based on the values sent from the input xml column  resultdatathis is an value which i have in my database, sent from front end.currently the dispaly is based on database storage level...

View Article

SQL Server Processor/Core Licensing and Windows CALs

I've scoured the internet for an answer to this question, so I'm assuming the scenario isn't as common as I think, or people are purposely looking the other way because they don't want to know the...

View Article


Casting an Integer and prepending a 0

I have an integer value for month as a single digit. I want to cast it to a string an ensure that if it's less than 10 it will always have a 0 prepended to it. This what I am working on, but having...

View Article

join several fields to create new field

What would be the recommendation/approach in creating a seperate field in which joins several differate fields together. I have a table with field name a, b, and c.  I want the information in those...

View Article


Mapping table problem

HI guysI need to put multiple coniditions on my table based on some combinations.Here is my main table-PractitionerDHBNamePHONamePracticenamePractitionerNameLocumYCountNCount4Canterbury DHBPartnership...

View Article

SQL Server vs MongoDB?

I have been happily using SQL Server for over 5 years and am convinced of the power of the relational model.However, next week I will be meeting with some folks who are hooked on MongoDB and not in...

View Article

Using the SQL Server Agent for the first time

I have set up several jobs to run automatically throughout the day. Each job just does one thing: executes an SSIS package.The packages themselves run perfect when I test them in Visual Studio 2005,...

View Article
Browsing all 9243 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>