Viewing 15 posts - 4,891 through 4,905 (of 5,588 total)
lmu92 (1/11/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 5:46 pm
vstitte (1/11/2010)
Wayne, Cool script.BUT in the final Select statement, did you mean to use column names instead of the variables?
WHOOPS! You are exactly right about that! Good catch. I have...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 5:37 pm
CirquedeSQLeil (1/11/2010)
WayneS (1/11/2010)
Well, the concept comes from Jeff. 'nuf said. 😉
Heh, started testing it after my last post. Still need to look at exec plans. From 2 records...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 3:05 pm
Well, the concept comes from Jeff. 'nuf said. 😉
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 2:46 pm
Try this.
-- if temp table already exists (failed previous run), drop it
if OBJECT_ID('tempdb..#test') IS NOT NULL DROP TABLE #test
-- simulate the table with the data in it.
-- NOTE how your...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 2:42 pm
Thanks Gus.
I saw that, and I'm sure that I fixed it before posting.... 😉
Can I blame in on the way things get quoted 'round here?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 2:07 pm
... and PATINDEX.
You might want to check out the article by Phil Factor on http://www.simple-talk.com dealing with the "quirky update". It shows an excellent example of splitting up a line...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 2:04 pm
rnikandrov (1/11/2010)
the plan is to:
#1 import file into single array
#2 parse the right line into temp table, so that i can work with it
can you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 11:00 am
This might help you out.
declare @proc sysname
set @proc = '<Your Procedure Name here>'
SELECT schema_name(sp.schema_id) [Schema], object_name(sasm.object_id) [Procedure]
FROM sys.all_sql_modules sasm
INNER JOIN sys.procedures...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 11, 2010 at 10:45 am
Manic Star (1/6/2010)
Lynn Pettis (1/6/2010)
Jen, based on what I have read, I'd enjoy the opportunity to work with you.You'd be welcome here too 🙂
Maybe I'm chiming in maybe a bit...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 6, 2010 at 6:47 pm
clive-421796 (1/1/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
January 4, 2010 at 1:08 pm
Anyone that wants to review an article of fixing Msg 8992 DBCC CHECKDB errors after upgrading from sql 2000, please PM me with how to send it to you. It's...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 29, 2009 at 3:03 pm
Jack Corbett (12/29/2009)
My commute is about 3 minutes by foot. It would take me longer to drive. 😛
Guess who to call after hours? 😀
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 29, 2009 at 3:00 pm
Lynn Pettis (12/29/2009)
Kassondra was in a car accident Sunday...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 29, 2009 at 11:05 am
GSquared (12/29/2009)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 29, 2009 at 11:03 am
Viewing 15 posts - 4,891 through 4,905 (of 5,588 total)