Viewing 15 posts - 151 through 165 (of 3,011 total)
I suggest running this to see the count with and without the NOLOCK to see if it is even related to the NOLOCK hint:
declare @st datetime;
set @st = getdate()
SELECT count(*)...
October 22, 2013 at 3:32 pm
Try this:
SELECT
ForcastUnitsTimesOMSCost,
SUM(isnull(CTCBOHAndWCSBOHTimesOMSCost/nullif(ForcastUnitsTimesOMSCost,0.00),0.00)) as Calculation
FROM
MyTable
Where
(CONVERT(date, GETDATE()) BETWEEN EventStartDate AND EventEndDate)
Group By
ForcastUnitsTimesOMSCost
October 21, 2013 at 12:43 pm
The building has a guard on duty at the building entrance 24x7. Everyone has to use their card to enter the building through a turnstile, and everyone has to...
October 14, 2013 at 10:40 am
This should do it:
select TodayAt4am = dateadd(dd,datediff(dd,0,getdate()),'04:00:00')
Results:
TodayAt4am
-----------------------
2013-10-11 04:00:00.000
October 11, 2013 at 8:56 am
AndrewSQLDBA (10/2/2013)
Those other options are what SSMS put there. I used the "wizard" and then did the "script to new window".
I did a test, but the size of the...
October 2, 2013 at 10:23 am
That code will create a full backup that includes all filegroups.
You don't need the NOFORMAT, SKIP, NOREWIND, and NOUNLOAD options. They only apply to tape.
You should probably leave out...
October 1, 2013 at 9:39 pm
Convert them to datetime values and use the DATEDIFF function to find the difference.
September 28, 2013 at 1:47 am
SQL08Kid (9/27/2013)
I don't ever deal with licensing so I don't know much about it....
With that being said, are the only two options for SQL Server 2012...
September 27, 2013 at 8:46 am
The only new license option for SQL Server 2012 Enterprise Edition is Core-based. Server/CAL is not an option for new 2012 Enterprise Edition licenses.
There is an option for Server/CAL...
September 27, 2013 at 8:43 am
Jeff Moden (9/26/2013)
Michael Valentine Jones (9/26/2013)
Jeff Moden (9/26/2013)
Michael Valentine Jones (9/25/2013)
That's not really the best way to go because it depends on the setting of a run-time session parameter, DATEFIRST.
Although...
September 27, 2013 at 8:06 am
Jeff Moden (9/26/2013)
Michael Valentine Jones (9/25/2013)
That's not really the best way to go because it depends on the setting of a run-time session parameter, DATEFIRST.
Although I certainly prefer you method,...
September 26, 2013 at 9:25 am
paul.j.kemna (9/25/2013)
Anyway, my boss and I came up with this code as an option as well:
DECLARE @someDate as...
September 25, 2013 at 4:26 pm
You have to execute the command once for each user, but you can have multiple commands in your script.
September 25, 2013 at 4:18 pm
Create a table that holds the DST start datetime and end datetime for each timezone you need to convert, and do a lookup against that table to determine if the...
September 17, 2013 at 10:02 am
bugg (9/16/2013)
I need to create an attribute table for say a product. Each of the attributes for a product can have have different fixed 'look-up' types.
My question is do...
September 16, 2013 at 8:44 am
Viewing 15 posts - 151 through 165 (of 3,011 total)