Viewing 15 posts - 1,966 through 1,980 (of 5,588 total)
Forget SSIS. Tell your boss that the easiest way to set up an automatic failover is to have a witness server. It can even be the FREE edition of SQL...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 8:42 pm
Did anyone hear about Microsoft's Hotmail SQL Server cloud issue?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 1:58 pm
Well, you have to get rid of the duplicates before doing the unique index. Here's how I'd do it:
WITH CTE AS(
SELECT [GuestID], [FirstName], [LastName], [BookDate],
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 12:47 pm
Steve Jones - SSC Editor (1/6/2011)
WayneS (1/6/2011)
ALZDBA (1/6/2011)
I polled for the third option 😛
I guess I hit enter... I've PM'd Steve to see if he can take it out, all...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 12:22 pm
You're welcome. Do you understand it? (See the note in my signature...)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 12:17 pm
I'm glad I didn't stir up the mud in the water!
Now... do you need help in getting rid of that c.u.r.s.o.r.?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 12:10 pm
The attached below code produces your desired results. (having trouble posting code directly from work - I'll move it into the post tonight!)
-- See how this starts off with a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 10:52 am
The DelimitedSplit8K function (Click here for the latest Delimited Split Function) will do this for you. It is probably the absolute fastest method that you'll find for splitting strings.
I have...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 10:45 am
Just to make sure I understand, since ID 1 has "data2" in both rows, you want it returned only for the first row, and you want all the data ordered...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 10:39 am
jcrawf02 (1/6/2011)
WayneS (1/6/2011)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 10:11 am
Brandie Tarvin (1/6/2011)
WayneS (1/6/2011)
Brandie Tarvin (1/5/2011)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 9:27 am
Chad Carter (1/6/2011)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 9:18 am
SQL_Dba_WannaBe (1/6/2011)
I was reviewing a CURSOR created and ran across a line of code that makes no sense to me. I was hoping someone out there could...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 9:12 am
Grant Fritchey (1/6/2011)
On the other hand, if it's Col1 to Col1, five times, no, that's useless, unnecessary and probably slows things down.
Yep, each FK would have to be validated to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 9:02 am
ALZDBA (1/6/2011)
I polled for the third option 😛
I guess I hit enter... I've PM'd Steve to see if he can take it out, all I can do is edit the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2011 at 8:58 am
Viewing 15 posts - 1,966 through 1,980 (of 5,588 total)