Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stored Procedure Hangs but Works Fine after Recompile


Stored Procedure Hangs but Works Fine after Recompile

Author
Message
Raj Gujar
Raj Gujar
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 175
Hi

Folks

I have a Stored Procedure which generally works great but some days it Just Hangs when we use it thorough our VB 6 application. At that time if I try to execute the SP in SSMS with the same parameter which the application is using it works fine. It only Hangs through the Application. To have a work around I recreated the Store Procedure and then the applications work fine. As of now I have added the "with recompile" option to the Stored Procedure. But if any one has any Ideas why this could happen I would applicate it.

We are using SQL Server 2005 and VB 6 ADO.

Thanks


Raj Gujar
Karthigai Rajan
Karthigai Rajan
Grasshopper
Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)Grasshopper (16 reputation)

Group: General Forum Members
Points: 16 Visits: 149
Hi,

If possible, check with profiler when you get your system hanged out next time. It might give you a clue.

Thanks
Raj Gujar
Raj Gujar
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 175
I will do it when next time it hangs, But My Concern is that It works great through SSMS at the very same time but hangs through the application. My Understanding is that if it has to impact performance it should be consistent through SSMS or Application
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search