Viewing 15 posts - 3,046 through 3,060 (of 5,588 total)
I agree with Luke that Shaiju CK's implementation isn't that good. However, a PIVOT won't work unless there are the same # of names.
So, here's a working solution:
DECLARE @tYourTableName TABLE...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 3:17 am
CREATE PROCEDURE dbo.LoadXMLData (@xmlData XML) AS ...
then use @xmlData.nodes()... to get the data out.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 3:01 am
Clkgtrs1 (10/1/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 2:59 am
Craig Farrell (9/29/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 2:48 am
I'm assuming that you're then using Excel to open the CSV, and want all of the column's auto-sized?
Setting the width in a CSV file defeats the nature of a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 2:44 am
Jeff Moden (9/30/2010)
WayneS (9/26/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 2:35 am
Trey Staker (10/1/2010)
Alvin Ramard (10/1/2010)
After looking at that thread you just posted in, I think it's time to write up a best practice for SSIS configuration and deployment.
I'm getting tired...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 2, 2010 at 2:19 am
The Dixie Flatline (10/1/2010)
Is anyone else having trouble posting this morning?Steve, I have an answer for the OP in this thread and it won't post my reply.
I've been having sporadic...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 1, 2010 at 8:41 am
Great question; I really enjoyed working through it. Thanks!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 1, 2010 at 8:30 am
Craig Farrell (9/30/2010)
CirquedeSQLeil (9/30/2010)
Grant Fritchey (9/30/2010)
CirquedeSQLeil (9/30/2010)
WayneS (9/30/2010)
CirquedeSQLeil (9/30/2010)
GilaMonster (9/30/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 30, 2010 at 7:22 pm
Sachin Vaidya (9/30/2010)
Derrick Smith (9/30/2010)
96gb ram and you're maxing it out?With a 96gig box, I'd limit the buffer cache to probably 80-82gb (the sql max memory setting).
Where did I mentioned...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 30, 2010 at 6:42 pm
CirquedeSQLeil (9/30/2010)
GilaMonster (9/30/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 30, 2010 at 5:10 pm
vvignesh86 (9/30/2010)
Could you please tell me where I would be able to find this option in BIDS?Thanks,
Vignesh
I don't actually have R2, so I can't tell you any more than what...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 30, 2010 at 4:17 pm
Yes. Note that you can use a CTE with an INSERT, UPDATE or DELETE statement in addition to the SELECT statement.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 30, 2010 at 3:28 pm
R2 has a mode (in BIDS) where you can select which version you're developing for. If you use the "R1" version, then sure.
Edit: added (in BIDS)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 30, 2010 at 2:55 pm
Viewing 15 posts - 3,046 through 3,060 (of 5,588 total)