Viewing 15 posts - 42,481 through 42,495 (of 59,102 total)
No! The recursive CTE method is the wrong method for this! Do you have the link back to the original problem? Recursive CTE's are just too damned...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2009 at 8:39 am
Ok... I need a pry bar or at least a sturdy sword to get the tennis shoe out of my mouth. It was a different guy and not the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2009 at 6:44 am
Ah... my very bad then... you are a different Karthik than the one I'm used to working with. Someone showed me that there are two people with the same...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2009 at 6:42 am
Heh... but I know how this works... 99% of the time, if you don't get your answer up front, the OP becomes a check valve as soon as he gets...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2009 at 6:37 am
Darned sorry about that, Goldie. I answered too quickly.
You would think that Microsoft would allow you to return data from the "from_table_name" on an insert like they do on...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 9:52 pm
Ummm... not 100% sure but it seems to me that we needed to change the IP address, as well. Maybe that's because we also copied the Windows Server, as...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 8:31 pm
I'd also recommend doing several tests on a separate box until you get it right. 😉 Once you get it right, schedule an outage so no one can change...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 8:23 pm
Here's how but I need to know... why do you need to do this type of formatting in SQL?
SELECT STUFF(RIGHT(CONVERT(VARCHAR(50),GETDATE(),109),14),9,4,'')
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 8:19 pm
With the OUTPUT clause, Goldie...
-- goal is to copy over data for specified test
-- need to keep track of which sections map to each other
-- here's the insert
-- but how...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 8:02 pm
Heh... guess what happens when you do a search for the following in Books Online? 😉
[font="Arial Black"]Estimating the Size of a Table [/font]
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 7:43 pm
I like the way the "Speedway" service stations did it here in Michigan. You don't have to fill out a bloody thing. They give you a card and...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 7:36 pm
gaj104 (8/6/2009)
Maybe I'm missing something here, but why bother with a script?
Simply use the unpivot function and then query as normal:
WITH P
AS (SELECT EMPLOYID,
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 7:30 pm
Very interesting indeed! Thanks for the great write up, Paul. That certainly puts a different slant on "the rumor".
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 7:08 pm
hugh.hemington (8/6/2009)
I have "Wrox Press Beginning T-SQL with Microsoft SQL Server 2005 and 2008"
I looked up "QUOTENAME" in that book, but when the brief...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 6:06 pm
Don't use the While Loop examples, either. They're nothing but cursors without the word "cursor" in them. Cursors and While Loops are very bad ways to go compared...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2009 at 5:33 pm
Viewing 15 posts - 42,481 through 42,495 (of 59,102 total)