Viewing 15 posts - 4,411 through 4,425 (of 5,588 total)
Utsab Chattopadhyay (4/15/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 15, 2010 at 7:53 am
gregory.anderson (4/15/2010)
SELECT
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 15, 2010 at 7:37 am
Toby White (4/12/2010)
Excellent article...
Thanks Toby.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 9:53 pm
Tom.Thomson (4/14/2010)
Great article, it's very thorough, meticulously clear descriptions and examples, I wish we could have more articles like this.
Thanks Tom! Nothing like a little pressure for any future articles......
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 9:52 pm
See if this gets what you need.
-- start off with the test data
-- See how you start off by actually creating a table and then
-- inserting the data into...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 8:16 pm
duplicate post. Please direct all replies to the other thread at http://www.sqlservercentral.com/Forums/Topic903697-149-1.aspx
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 7:14 pm
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 7:12 pm
Based on this sample data, what do you want the output to look like? I'm just not understanding what it is that you are wanting to get out of this.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 7:10 pm
PaulB-TheOneAndOnly (4/14/2010)
This is either homework or one of the top five most weird business specs I've ever seen.
I'd vote for this being the top 1 weird business spec :w00t:
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 7:05 pm
Jeff Moden (4/14/2010)
Wayne... just split on the "=" sign using SUBSTRING and CHARINDEX. It doesn't need to be Pivoted using a CrossTab to be used very effectively.
I utilized the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 6:59 pm
Happens to all of us at some point. I initially thought it might be because the TM symbol might need to be specified as unicode.... but it turned out to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 6:32 pm
mranganwa (4/14/2010)
works nicely but when I encounter a string like this one
INSERT #Test VALUES('TBM907 - 16/03: provided a new ,of TBM908 - 02/03: TBM908 has TBM908')--- I want to extract...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 6:29 pm
GSquared (4/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 6:15 pm
CirquedeSQLeil (4/14/2010)
WayneS (4/14/2010)
Lynn Pettis (4/14/2010)
CirquedeSQLeil (4/14/2010)
Lynn Pettis (4/14/2010)
To the TinD I am going, fun you all can have.It looks like you can come back now.
And I did. Just waiting...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:59 pm
You need to convert this all to dynamic sql. And, the object names (in this case, the column names), can't be dynamic. Something like this:
DECLARE @sql VARCHAR(8000)
SET @sql =
'SELECT...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:53 pm
Viewing 15 posts - 4,411 through 4,425 (of 5,588 total)