Viewing 15 posts - 2,521 through 2,535 (of 2,620 total)
James Dingle-651585 (5/24/2010)
May 24, 2010 at 7:37 am
James Dingle-651585 (5/24/2010)
Quick remarks:
- There is a clustered index scan on the ID. Obviously, this way it won't work. The snippet of code I've wrote was assuming...
May 24, 2010 at 4:26 am
And just one more before anyone else suggests it:
-- Query 10
SELECT *
FROM [Product]
WHERE NOT([Name] <> @Name AND @Name IS NOT NULL)
the where clause above is actually...
May 23, 2010 at 6:15 pm
James Dingle,
In fact your query preforms nearly twice as badly as the original non-dynamic SQL that would have been in the initial stored procedure.
See SQL and execution plan below.
DECLARE @Name...
May 23, 2010 at 4:02 pm
James Dingle,
I've tried your style of query to obtain the execution plan and it is the worst performing out of all the attempts so far.
Please find details below. I created...
May 23, 2010 at 2:09 pm
I thought I'd better put some tests in after all the discussion.
Create some test data:
IF OBJECT_ID('Product','U') IS NOT NULL
DROP TABLE [Product]
IF OBJECT_ID('Colors','U') IS NOT NULL
...
May 21, 2010 at 10:46 pm
chris.shaw (5/21/2010)
I must say that I found your article to have some really good information in it. I guess there was only a couple comments to it...
May 21, 2010 at 5:31 am
Gursoy Yerli (5/11/2010)
Your generation sproc was ignoring the schema when using "EXEC sp_helptext @ProcedureName". Added below to fix the issue.
...
May 11, 2010 at 10:38 am
You can't update two tables in one SQL statement but you can wrap them in an transaction so from the outside it looks like they are.
BEGIN TRANSACTION
UPDATE A
SET Complete =...
May 9, 2010 at 6:04 pm
mike.renwick-894639 (5/7/2010)
I've not come across DDL triggers before- they look quite interesting and a relatively sensible place to capture changes.
I've written this trigger to record when DDL changes...
May 7, 2010 at 10:29 am
Grant Fritchey (5/7/2010)
May 7, 2010 at 8:26 am
bill page-320204 (5/6/2010)
We use SourceSafe. We keep each proc separate. When I need to change one, I check it out, modify it, paste it...
May 6, 2010 at 1:29 pm
CirquedeSQLeil (5/6/2010)
I would have like to see a more in-depth article on the facets of the scripts. I think this would have added more value to the article.
I didn't...
May 6, 2010 at 10:47 am
bphipps-931675 (5/6/2010)
But you lose the benefits of a change log that manual management of your procedures provides.
In the version of the procedure I have adds and additional call to another...
May 6, 2010 at 10:17 am
bphipps-931675 (5/6/2010)
May 6, 2010 at 9:42 am
Viewing 15 posts - 2,521 through 2,535 (of 2,620 total)