Viewing 15 posts - 3,256 through 3,270 (of 5,588 total)
I ran Jeff's CSV builder, and Peter's test code on my system. For good measure, I threw in the DelimitedSplit8K routine also (running against both a "real" and a virtual...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 13, 2010 at 6:33 am
If you will post your sample data creation, I'll give it a test...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 10:29 pm
CirquedeSQLeil (9/12/2010)
WayneS (9/12/2010)
GilaMonster (9/12/2010)
Alvin Ramard (9/12/2010)
Alvin Ramard (9/12/2010)
Gail, you might want to bring a certain piece of steel with you if you go revisit that BIT datatype thread.
That OP is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 5:34 pm
Alvin Ramard (9/12/2010)
GilaMonster (9/12/2010)
Patience, yes, but that poster needs an attitude adjustment. Go back through their older posts.
I think part of his problem, on top of his poor communication skills,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 5:30 pm
GilaMonster (9/12/2010)
Alvin Ramard (9/12/2010)
Alvin Ramard (9/12/2010)
Gail, you might want to bring a certain piece of steel with you if you go revisit that BIT datatype thread.
That OP is now on...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 4:53 pm
You're going to have to do something like:
DECLARE @test-2 TABLE (ColumnX char(1), ColumnY int);
INSERT INTO @test-2
SELECT 'a', 3 UNION ALL
SELECT 'b', 4 UNION ALL
SELECT 'a', 3 UNION ALL
SELECT 'a', 3...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 4:41 pm
The problem is that in order to really use the output clause to capture the identity column, and then subsequently use it in a child insert, you do need something...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 4:32 pm
steve-893342 (9/12/2010)
WayneS (9/12/2010)
steve-893342 (9/11/2010)
A variation using CROSS APPLYThis is a SQL 7/2000 forum... the cross apply won't work unless posted in the wrong forum.
shell_l_d (9/10/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 4:20 pm
The XML splitter that I used until you blasted it away with code did not use the ROW_NUMBER() function to return the position.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 4:13 pm
GilaMonster (9/12/2010)
WayneS (9/12/2010)
CirquedeSQLeil (9/11/2010)
Anybody else want to try this one?Well, it looks like Gail made a new friend out of it. http://www.sqlservercentral.com/Forums/FindPost984310.aspx.
The phrase "With friends like that who needs enemies"...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 4:02 pm
Jason Akin (9/11/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 1:48 pm
steve-893342 (9/11/2010)
A variation using CROSS APPLY
This is a SQL 7/2000 forum... the cross apply won't work unless posted in the wrong forum.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 1:36 pm
CirquedeSQLeil (9/11/2010)
Anybody else want to try this one?
Well, it looks like Gail made a new friend out of it. http://www.sqlservercentral.com/Forums/FindPost984310.aspx.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 12, 2010 at 1:25 pm
No problem.
But... please follow up and let us know how it works out for you.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 8:48 pm
Jeff Moden (9/10/2010)
mtillman-921105 (9/10/2010)
The Dixie Flatline (9/10/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 7:21 pm
Viewing 15 posts - 3,256 through 3,270 (of 5,588 total)