dbTalk Databases Forums  

RE: sql server 2000 stops after transaction

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss RE: sql server 2000 stops after transaction in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Umut Nazlica
 
Posts: n/a

Default RE: sql server 2000 stops after transaction - 12-19-2005 , 08:17 AM






Hi,

It's hard to give an explanation without knowing your code and data but most
of the time when i receive problems like this (works on QA but not on
application) it's because of inproper plan usage. I run the same statement
with same parameter on QA it works fine but the sp suffers when it called
from application. I have found that there are 2 plans cached for that sp in
syscacheobjects. (Because of set options are different). And i found that
because of data distribution when the sp executed for the first time the
generated plan is optimal for that parameter value but if the sp is called
for other parameter values that plan is not optimal and suffers. So we use
with recompile if it's acceptable or change the code.
Not sure that this is your problem but might give you a hint..
Regards.



"vineet.jsl (AT) gmail (DOT) com" wrote:

Quote:
Hi,
i have created a stored procedure and its running fine.
i am sure that sproc doesn't have any problem.
after that i integrate this sproc to an application.

whenever i execute sproc from query analyzer. its running fine and
doing expected job.
but whenever i am calling it through application after one successful
transaction whenever i call second time, the sql server stops
responding.

what cause this problem..
plz help me.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.