SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Stored Procedure performance
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 07/22/2013 :  10:15:47  Show Profile  Reply with Quote

I am using SQL 2008 R2.

I have one stored procedure in that 6 insert statement and 2 update statement.

1.Insert Statement
2.Insert Statement
3.Update statement
4.Insert Statement
5.Insert Statement
6.Update statement
7.Insert Statement
8.Insert Statement

If i run 1st insert statement it is taking max 30 seconds to execute, for 2nd insert statement it is taking max 20 seconds to execute,
for update statement 10 seconds.

If i run all the three it taking more than 15 mins.

Please any idea...?
Thanks in advance...


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/22/2013 :  10:18:02  Show Profile  Reply with Quote
Are they all working on same set of tables?

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000