C#, Try Catch and Stored Procedures

  • Hi,

    Please could somebody advise on the following.

    If a stored procedure is executed via C# and is contained within a Try Catch does this grant any exclusive locks on tables within the stored procedure or wrap the stored procedure with a begin transaction for example?

    We have an issue whereby a service is timing out when updating a table that is contained within the stored procedure being executed via C#. The stored procedure being executed takes 30-40 minutes to complete (I know it takes a long time, I didn't code it, honest! 😛 )

    Sorry if there isn't enough info, please let me know if I should include more.

    Regards,

    Adam

  • How about step #1 we try to bring that down under 10 sec?

    Can you post the actual execution plan?

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply