Viewing 15 posts - 46 through 60 (of 64 total)
Grant Fritchey (4/15/2009)
April 15, 2009 at 8:20 am
Here is the actual execution paln for the query run on 2005
I'm not sure how to get the 2000 text plan you are talking about? Please excuse the ignorance
April 15, 2009 at 7:59 am
Here is the execution plans for the same query
I used the method that Lynn posted
select * from KRI_ASP_AccFACSNtEqAccConsole_DATA_C where
substring(BIBNAC,patindex('%[^0]%', BIBNAC),len(BIBNAC) - patindex('%[^0]%', BIBNAC) + 1)
NOT IN
(
SELECT
substring(accountnum,patindex('%[^0]%', accountnum),len(accountnum) -...
April 15, 2009 at 6:35 am
Lynn Pettis (4/14/2009)
select substring(@varstr,patindex('%[^0]%', @varstr),len(@varstr) - patindex('%[^0]%', @varstr) +...
April 15, 2009 at 5:16 am
Hi Grant
How can I send you the screen prints of the execution plans?
April 15, 2009 at 3:59 am
Thanks Grant
I will look at the excecution plans but I might need your help with analyzing them
April 14, 2009 at 4:40 pm
Ok wait I think we are takling past each other here
Here is a step for step list of things I did from scratch
-- I restored a sql 2000 db into...
April 14, 2009 at 4:11 pm
Ok so what you are saying is that execution plans for the same query may be different in sql 2000 & 2005, and thus the reason for the different execution...
April 14, 2009 at 9:58 am
Yeah i've updated statistics and reindexed.
The udf is different code.
April 14, 2009 at 8:52 am
Ok I think I see what is happening.
So sql 2000 and sql 2005 might have different excecution plans for the same query?
Using a udf to remove the zero's also results...
April 14, 2009 at 8:35 am
Thanks Lowell
I tried your first query because it is similar to my current query and it ran very fast.
SELECT * FROM TABLE1 WHERE
CONVERT(INT,BIBNAC)
NOT IN
(
SELECT
CONVERT(INT,ACCOUNTNUM) WHERE ISNUMERIC(ACCOUNTNUM) = 1
FROM
Table2
)
WHERE ISNUMERIC(BIBNAC)...
April 14, 2009 at 6:10 am
Thanks.
Its part of normal business processes.
I'm just a bit concerned because the same type of query over the same amount of data on a sql 2000 server takes a matter...
April 14, 2009 at 5:09 am
Thanks for the reply.
It still does not explain the following...
select * from Table1 where
BIBNAC not in
(
SELECT
ACCOUNTNUM
FROM
Table2
)
completes in a like 3 seconds
where as
select * from Table1 where
REPLACE(LTRIM(REPLACE(BIBNAC, '0',...
April 13, 2009 at 3:15 am
Yeah I will get rid of the 'isnull'
I looked at the execution plan in both sql 2000 and sql 2005 and they are the same, and this does not help...
April 10, 2009 at 6:15 am
Viewing 15 posts - 46 through 60 (of 64 total)