Viewing 15 posts - 2,146 through 2,160 (of 5,588 total)
I've hardly used STR(), so I didn't know about all of these pitfalls. Thanks for the Spackle!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 14, 2010 at 10:55 pm
paul.beattie (12/14/2010)
Any ideas?
Yes.
You know, the people that help out here are all un-paid volunteers, so please HELP US HELP YOU. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.)...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 14, 2010 at 7:40 pm
ASDL (12/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 14, 2010 at 2:26 pm
Stefan Krzywicki (12/14/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 14, 2010 at 1:52 pm
Paul White NZ (12/13/2010)
1. Truncating the staging table at the start of the SSIS package (an Execute SQL task)
2. Dropping any nonclustered indexes on...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 14, 2010 at 8:21 am
Paul White NZ (12/13/2010)
WayneS (12/13/2010)
Did you ever do anything with that missing index on those processes in the c.u.r.s.o.r.? (Or making the CI on BatchGroup?)
I'm not dismissing the idea at...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 14, 2010 at 8:11 am
Now to handle what HappyCat mentioned with your code:
DECLARE @Desc VARCHAR(5000)
BEGIN TRY
-- Generate a divide-by-zero error.
SELECT 1/0;
END TRY
BEGIN CATCH
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 13, 2010 at 9:01 pm
Did you ever do anything with that missing index on those processes in the c.u.r.s.o.r.? (Or making the CI on BatchGroup?)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 13, 2010 at 8:58 pm
I agree 100% with shooting down Method 3.
Your DBA is a pretty smart guy for being able to do #2. Normally, I would be inclined to agree with him. However,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 13, 2010 at 8:49 pm
How about this?
SELECT t1.NumericalRanking,
AlphaRanking
FROM (SELECT NumericalRanking = really complicated code FROM MyTables) t1
JOIN rankings...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 13, 2010 at 11:41 am
GilaMonster (12/12/2010)
I wonder, if I change my avatar to a photo, will I stop having people call me Mr or Sir?
That depends - do they do it in person, or...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 12, 2010 at 1:49 pm
Phil,
So, something like this?
-- store off what you're doing so you can mark them as processed
DECLARE @TableNew TABLE (RowID INT IDENTITY, Col2 = PK of TABLE);
INSERT INTO @TableNew SELECT PK...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 12, 2010 at 12:25 pm
Tom.Thomson (12/12/2010)
Steve Jones - SSC Editor (12/11/2010)
Tom.Thomson (12/11/2010)
Celko's been at it again, and Gus's response http://www.sqlservercentral.com/Forums/FindPost1032150.aspx is unfair to monkeys.Excellent response from Lowell and Gus.
Tom, new avatar?
Yes, it changes now...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 12, 2010 at 12:09 pm
Jeff Moden (12/11/2010)
Try this...
I knew there was a simpler way, but I just couldn't figure it out. Thanks Jeff!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 11, 2010 at 10:21 pm
Paul White NZ (12/11/2010)
edit: Wayne, that query plan graphic really messes up the page - how about leaving it as an attachment?
Done, sorry about that!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
December 11, 2010 at 10:09 pm
Viewing 15 posts - 2,146 through 2,160 (of 5,588 total)