Viewing 15 posts - 4,591 through 4,605 (of 5,588 total)
CirquedeSQLeil (3/26/2010)
Steve Jones - Editor (3/26/2010)
I think you need to ignore the posts that aren't on topic in the cert thread. Just skip them like they are not present.
I wish...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 26, 2010 at 4:48 pm
The Dixie Flatline (3/26/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 26, 2010 at 4:24 pm
Lynn Pettis (3/26/2010)
CirquedeSQLeil (3/26/2010)
Lynn Pettis (3/26/2010)
I am more than willing to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 26, 2010 at 10:10 am
You're going to have to use the data conversion transformation to put it in the proper format.
FYI, the easiest way is to use the "Export Data" wizard in SSMS, specify...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 26, 2010 at 8:43 am
Nice Paul, very nice! No tally table at all, just using CharIndex's ability to get the next occurrence. And, of course, your always-present CROSS APPLY 😀
Good job. I also learned...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 26, 2010 at 5:40 am
elchuru (3/25/2010)
Hi,Can anybody suggest me "How to get last 10 characters in all rows of a single(same) column?".
Thanks in advance
declare @test varchar(50)
set @test = 'qhonboenoqenfpgqonfnoibnqogqofqqf'
select right(@test, 10)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 25, 2010 at 7:44 pm
tesker (3/25/2010)
SELECT...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 25, 2010 at 2:23 pm
Sounds like if you blinked, you missed it. See why you should have a permanent tally table?!? 🙂
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 25, 2010 at 12:00 pm
Lowell (3/25/2010)
performance on this solution sux, took my decent dev machine 1:09 to return the 151 rows, we might...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 25, 2010 at 11:29 am
It would be really helpful if, based on the sample data provided (BTW, thanks for that!), if you would supply what the expected output would be.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 25, 2010 at 8:07 am
-- See how this starts off by creating a table
-- and inserting representative test data into it?
-- If you do this, it makes it a LOT easier for all
--...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 24, 2010 at 11:08 pm
lmu92 (3/24/2010)
Thanx Wayne for taking over.I've been busy in between so I couldn't follow up for a while...
No problem. On the other hand, it's been a little bit slow for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 24, 2010 at 4:24 pm
Slick,
I took Lutz' code, added the other product fields, and it works fine. One thing to remember, when dealing with XML, is that it is CaSe SeNsItIvE.
DECLARE @xml XML
SET @xml=(SELECT...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 24, 2010 at 2:49 pm
You can do this using the PIVOT operator. See this BOL link for details.
-- see how this starts off with a table and data in it?
-- if you had provided...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 24, 2010 at 2:20 pm
This link provides some information that might help you out.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
March 24, 2010 at 1:54 pm
Viewing 15 posts - 4,591 through 4,605 (of 5,588 total)