Viewing 15 posts - 2,506 through 2,520 (of 5,590 total)
ssismaddy (11/9/2010)
November 9, 2010 at 11:46 am
pauled2109 (11/9/2010)
November 9, 2010 at 11:23 am
SELECT Item = convert(int, ds.Item)
FROM dbo.DelimitedSplit8k(@IDList, ',') ds;
Click here for the latest Delimited Split Function.
November 9, 2010 at 11:14 am
rajg (11/9/2010)
I have a table with two columns i.e. ChangeDate and StepId. I need a third column 'status' at run time based on the data in this table.
Records can...
November 9, 2010 at 11:10 am
Use the second method - you'll be able to utilize available indexes. The first method will end up with scans on both tables.
November 9, 2010 at 10:48 am
Using Cluster Administrator, go to the resource group for the SQL Services. Right-click "SQL Server", and select "Take Offline". This will also take the SQL Server Agent offline.
November 9, 2010 at 10:45 am
I had no problems with your sample data and update statement in this code:
DECLARE @XMLCargo XML;
SET @XMLCargo = '<root><row orderid=''323936'' ordernumber=''125924'' cargoready=''01/11/2010 00:00:00'' estpallets=''1'' estweight=''2'' estvolume=''3''/><row orderid=''326695'' ordernumber=''128176'' cargoready=''01/21/2010 00:00:00''...
November 9, 2010 at 10:16 am
Forget the online text editor... put it into a word document. Steve will convert it.
November 8, 2010 at 5:52 pm
I recently ran into an issue where a server's diff backups were failing. DB set to full weekly, diffs daily (test db, so no t-logs). On the third day after...
November 8, 2010 at 5:46 pm
Craig Farrell (11/8/2010)
WayneS (11/8/2010)
I would suggest getting all of the fields in a CTE, then doing the DateDiff in the final select:
cte's are guaranteed to be pre-processed by the optimizer...
November 8, 2010 at 5:42 pm
I would suggest getting all of the fields in a CTE, then doing the DateDiff in the final select:
WITH CTE AS
(
SELECT cv.currentlocation,
cv.ClientDisplayName,
...
November 8, 2010 at 4:58 pm
SELECT DISTINCT
attribute_id,
Val = stuff((SELECT ', ' + Val
...
November 8, 2010 at 4:42 pm
Would you mind posting your solution, so that we can see how it differs?
November 8, 2010 at 12:10 pm
How does this work for you?
declare @date1 datetime,
@date2 datetime,
@SwapDate datetime;
SELECT @Date2 = GetDate(),
...
November 8, 2010 at 11:45 am
Viewing 15 posts - 2,506 through 2,520 (of 5,590 total)