Viewing 15 posts - 3,031 through 3,045 (of 5,588 total)
SELECT EmployeeID,
DataYear,
YearlyWage,
FiveYearWage = (SELECT SUM(YearlyWage)
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 4:39 pm
GilaMonster (10/4/2010)
I'm not sure I got the order of operation there correct. Do you check that it's the correct DB before or after dropping it?
I'd do it after. That...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 3:33 pm
Alvin Ramard (10/4/2010)
GilaMonster (10/4/2010)
For your monday evening entertainment: http://www.sqlservercentral.com/Forums/Topic997896-357-1.aspxThere are days I just don't want to know...
I had to reply to that one.
I replied with http://lmgtfy.com/?q=How+to+use+Internet+Search+Engine
I prefer to use the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 3:29 pm
Welcome!
Yes, reading BOL and using search engines are powerful tools to have in your arsenal. The only thing I'd add to your excellent post is that when you have exhausted...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 2:52 pm
WayneS (10/2/2010)
Jeff Moden (9/30/2010)
WayneS (9/26/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 12:37 pm
Craig Farrell (10/4/2010)
WayneS (10/2/2010)
Craig Farrell (9/29/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 11:44 am
http://msdn.microsoft.com/en-us/library/ms189275.aspx
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 11:04 am
BrainDonor (10/4/2010)
Paul White NZ (10/2/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 4, 2010 at 10:06 am
That depends... do your requirements specify sometimes doing some of this, and at other times not doing it? If so, then it would be needed.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 3, 2010 at 6:41 pm
blacklabellover2003 (10/3/2010)
I've got sections of code I'd like to transfrom into a single stored procedure. At the moment, we run each of the five sections separately, the first...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 3, 2010 at 1:00 pm
How about:
1. Use an Execute SQL Task to run a bulk insert to read the first line (column headers) into a #temp table (1 column).
2. Prepare a variable to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 3, 2010 at 6:43 am
Glad to be of assistance! 😀
Seriously, I do like Luke's suggestion of using grouping and the JOIN function within SSRS. The solution I posted might reduce network traffic and server...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 9:58 am
Paul White NZ (10/2/2010)
WayneS (10/2/2010)
Congrats! Where are you moving to?
Just locally, 5km or so. The new place is on the hillside overlooking the Tasman Sea and Kapiti Island.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 9:51 am
You know, the people that help out here are all un-paid volunteers, so please HELP US HELP YOU. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 3:25 am
Paul White NZ (10/2/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 3:22 am
Viewing 15 posts - 3,031 through 3,045 (of 5,588 total)