Viewing 15 posts - 4,486 through 4,500 (of 5,588 total)
Given the choice of:
if @Param1 > '' and @Param2 > '' update table1 set column1 = @param1, column2 = @param2
else if @Param1 > '' update table1 set column1 = @param1
else...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 8, 2010 at 1:25 pm
You basicly have two options:
1. Use dynamic sql @cmd = '... IN(' + @tech_list + ')'
2. Use a string splitting routine to make separate rows out of each entry, and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 8, 2010 at 12:02 pm
Gianluca Sartori (4/8/2010)
WayneS (4/7/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 8, 2010 at 8:51 am
RBarryYoung (4/7/2010)
WayneS (4/7/2010)
Jeffrey Williams-493691 (4/7/2010)
Grant Fritchey (4/7/2010)
You kids take this outside or I'm going to get my belt!
If you don't stop right now - I'm going to turn this car...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 8, 2010 at 8:49 am
Paul White NZ (4/7/2010)
*cough*Whose QotD? π :rolleyes:
Crap... Sorry Paul. I fixed it, but you have me quoted with the wrong name forever...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 7:21 pm
Oh, personal note. In 1998, I started a position for a 6 month contract. I left it almost 8 years later.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 6:14 pm
I see Paul's QOD is still running 47%, w/ 1250 attempts.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 6:04 pm
Jeffrey Williams-493691 (4/7/2010)
Grant Fritchey (4/7/2010)
You kids take this outside or I'm going to get my belt!
If you don't stop right now - I'm going to turn this car around and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 6:02 pm
CirquedeSQLeil (4/7/2010)
Grant Fritchey (4/7/2010)
CirquedeSQLeil (4/7/2010)
Grant Fritchey (4/7/2010)
You kids take this outside or I'm going to get my belt!
And then put on your pants?
Alternatively
If you kids don't stop right now, you'll...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 5:57 pm
CirquedeSQLeil (4/7/2010)
That is awesome. If I ever need to hold true to the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 5:51 pm
CirquedeSQLeil (4/7/2010)
Jeffrey Williams-493691 (4/7/2010)
Grant Fritchey (4/7/2010)
You kids take this outside or I'm going to get my belt!
If you don't stop right now - I'm going to turn this car around...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 5:43 pm
Jack Corbett (4/7/2010)
I agree with Wayne on this one.
But not on others? Jack, you should always agree with me. π π
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 3:51 pm
Some places use a 6 month contract to "try you out". If you do a good job, they'll turn it into a FT job. If not, bye bye. Can you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 3:38 pm
RalphWilson (4/7/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 12:56 pm
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 7, 2010 at 10:21 am
Viewing 15 posts - 4,486 through 4,500 (of 5,588 total)