Viewing 15 posts - 2,506 through 2,520 (of 5,588 total)
ssismaddy (11/9/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 9, 2010 at 11:46 am
pauled2109 (11/9/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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''...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 9, 2010 at 10:16 am
Forget the online text editor... put it into a word document. Steve will convert it.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
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...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 8, 2010 at 5:46 pm
@craig-2: +1
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 8, 2010 at 4:47 pm
SELECT DISTINCT
attribute_id,
Val = stuff((SELECT ', ' + Val
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 8, 2010 at 4:42 pm
Would you mind posting your solution, so that we can see how it differs?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 8, 2010 at 12:10 pm
How does this work for you?
declare @date1 datetime,
@date2 datetime,
@SwapDate datetime;
SELECT @Date2 = GetDate(),
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 8, 2010 at 11:45 am
GilaMonster (11/8/2010)
Does this count? http://www.sqlservercentral.com/Forums/Topic1017255-1292-1.aspx
Interesting - I always thought that when creating a procedure with parameters, that all of the parameters were to be in a set of parenthesis. I...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 8, 2010 at 11:18 am
CONVERT(nchar(23), <FieldToConvert>)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 6, 2010 at 10:50 pm
Viewing 15 posts - 2,506 through 2,520 (of 5,588 total)