Viewing 15 posts - 2,461 through 2,475 (of 5,588 total)
GilaMonster (11/11/2010)
WayneS (11/11/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 1:50 pm
John Rowan (11/11/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 1:45 pm
Craig Farrell (11/11/2010)
What's got me confused is... why are we moving backwards a week?
If you take the first week (1899-12-31 to 1900-01-05), all of these will evaluate to week zero....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 1:44 pm
Using the table that Craig posted (modified only to add a PK to it), here are two solutions. The first may be faster due to not having a sort operation...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 1:39 pm
Well, I'm off to give my first presentation of "Comparing Tables Variables and Temporary Tables" to my UG tonight. Wish me good tidings, smooth talk, and all the other stuff...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 1:24 pm
GilaMonster (11/11/2010)
http://twitter.com/#!/GFritchey/status/2742141222658049and
Kinda...
Gail, the google link doesn't return anything for me.... 🙁
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 1:22 pm
Carl,
Very interesting. The server I tested this on has only a default instance.
I wonder if this is connected to what Caine posted, where it is implied that SSMS is always...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 11:07 am
Caine,
Thanks for this information. However, in looking in the registry for this information, it does vary based on the engine version. After 2000, there is an extra "Microsoft SQL Server"...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 11:04 am
declare @s-2 varchar(100) = '1001,2001,1002,2002,1003,2003';
declare @id1 varchar(100);
declare @id2 varchar(100);
set @id1 = STUFF((SELECT ',' + Item
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 10:46 am
John,
Let's see if I can do it justice.
Formula: DATEADD(dd,DATEDIFF(dd,-7,DateOfPurchase)/7*7,-1))
select DATENAME(weekday, 0); -- = Monday
select DATENAME(weekday, -1); -- = Sunday
select DateAdd(day, -7, 0); -- = 18991225
So, take the number of days...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 10:13 am
You could use the sp_OA procedures, with "Scripting.FileSystemObject", to create files.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 9:12 am
Chris Morris-439714 (11/11/2010)
WayneS (11/10/2010)
Has anyone heard anything about Barry lately?
I had the same thought a couple of weeks ago, but a quick look revealed he'd been quite active, though not...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 8:52 am
Grant Fritchey (11/11/2010)
PASS Summit has been flipping AWESOME. Wish we had a way to get you all here, maybe a teleporter.
Yeah, I also wish so ...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 8:31 am
Carl Federl (11/11/2010)
"In the case of backups, this allows you to specify a backup with just a file name (from T-SQL), and the backup will go to this...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 8:06 am
Sally,
Two things that I've noticed in looking over this:
1. The order that you evaluate things is important. Looking for "U.S." before "U.S.N." will always find the match on U.S., and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
November 11, 2010 at 7:40 am
Viewing 15 posts - 2,461 through 2,475 (of 5,588 total)