MartinCroft
Programmer
Hi
This is a most bizzare one! A procedure called smABC019 runs for over an hour but if you rename it to anthing else
smABC020 or smABC019db it runs in under 10 seconds.
The following things have been tried
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
sp_recompile (procedure)
Droping and recompiling, creating a new procedure with the same name that just returns SELECT 1, this run instantly then drop buffers and cache. The syscacheobjects table is being cleared out. The sql server instance has been stopped and re-started all to no avail
The easy answer is obviouly to change the name but I want to know why its doing this and it must be storing the table name / object name somewhere even when caches cleared and instance restarted. The execution display existmated plan does not bring anything back untoward, comparing SHOWPLAN_ALL etc shows no differnces
any idea's
Mart
This is a most bizzare one! A procedure called smABC019 runs for over an hour but if you rename it to anthing else
smABC020 or smABC019db it runs in under 10 seconds.
The following things have been tried
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
sp_recompile (procedure)
Droping and recompiling, creating a new procedure with the same name that just returns SELECT 1, this run instantly then drop buffers and cache. The syscacheobjects table is being cleared out. The sql server instance has been stopped and re-started all to no avail
The easy answer is obviouly to change the name but I want to know why its doing this and it must be storing the table name / object name somewhere even when caches cleared and instance restarted. The execution display existmated plan does not bring anything back untoward, comparing SHOWPLAN_ALL etc shows no differnces
any idea's
Mart