Viewing 15 posts - 2,536 through 2,550 (of 2,642 total)
I've changed the ORDER BY on one of the statements and it seems to have fixed it:
IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.SCHEMATA
WHERE SCHEMA_NAME = 'utils'
AND SCHEMA_OWNER = 'dbo')
BEGIN
...
August 23, 2010 at 2:46 pm
Shamshad Ali (8/23/2010)
The script you make with efforts are highly appreciated, but the latest script I checked for my case is not perfect and have bugs. All, always verify...
August 23, 2010 at 4:31 am
Nice article with gentle introduction. thanks.
July 5, 2010 at 6:36 am
janyalee (6/21/2010)
Hello Jonathan, I appreciated this article. It got me wondering, what signing with a certificate gets us that SP WITH...
June 21, 2010 at 6:03 pm
UMG Developer (6/21/2010)
June 21, 2010 at 5:41 pm
ChiragNS (6/21/2010)
June 21, 2010 at 9:32 am
Adam Gojdas (5/25/2010)
May 25, 2010 at 3:50 pm
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
Viewing 15 posts - 2,536 through 2,550 (of 2,642 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy