Viewing 15 posts - 21,481 through 21,495 (of 26,484 total)
Query finished, ran 9 minutes 14 secods and returned 7203 rows. Some of the estimated rows are quite high, 9 B for one of them.
I have uploaded my actual...
April 15, 2009 at 10:39 am
Chris, Nevermind. I found your post above.
The second query, even with OPTION (MAXDOP 1), is pegging my Dual Proc Quad Core system.
The first query ran extremely fast. I...
April 15, 2009 at 10:30 am
Christopher Stobbs (4/15/2009)
Ok with the following query I can confirm that on 200 it takes milliseconds and in 2005 it takes well over 5 minutes and...
April 15, 2009 at 10:11 am
Rowan (4/15/2009)
Thanks Lynn, i will try that asapI did try your query where you use 'except'
This did cut the running time down quite a bit
Not really sure what "quite...
April 15, 2009 at 10:04 am
Here is some code for you to examine and play with. I hope it helps.
declare @StartDate datetime,
@EndDate datetime;
select
...
April 15, 2009 at 9:59 am
You indicate an end date in your original post, but I don't see that in your test data. How is this determined or is it passes as a parameter?
Your...
April 15, 2009 at 9:30 am
This may be counter-intuitive. on SQL Server 2005, add this to the end of your query: OPTION (MAXDOP 1)
I would still like you to try my other SQL Server 2005...
April 15, 2009 at 9:02 am
Thomas (4/15/2009)
I stand corrected. Cross joining on syscolumns does appear to be a bit faster. Perhaps this is one loop based solution that now has a reasonable set-based solution.
Take...
April 15, 2009 at 8:56 am
Using just the first 2 or 3 values in your test data, could you please provide us with the expected output from the process? This will greatly assist in...
April 15, 2009 at 8:44 am
Rowan (4/15/2009)
Lynn Pettis (4/15/2009)
Can you tell me more about the configuration of the server all of this is running on?
Its a Windows Server 2003 server SP2
Microsoft SQL Server 2005 -...
April 15, 2009 at 8:37 am
If you were to execute the procedure I posted above in SSMS, this is how you would do it:
declare @id int,
@uname varchar(50),
...
April 15, 2009 at 8:33 am
This is how I would write the procedure:
alter procedure [dbo].[checkComms]
@CommID int,
@username varchar(50),
@status varchar(200) OUTPUT
as
begin
...
April 15, 2009 at 8:14 am
Can you tell me more about the configuration of the server all of this is running on?
April 15, 2009 at 8:03 am
Had an idea for SQL Server 2005. This WON"T work on SQL Server 2000. Please give it a try, and let's see what happens.
select
*
from
...
April 15, 2009 at 6:33 am
While you are capturing the Execution Plan, could you post the complete query code you are running and the DDL (Including indexes) for the two tables.
From what I can tell,...
April 15, 2009 at 6:25 am
Viewing 15 posts - 21,481 through 21,495 (of 26,484 total)