SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

Venujdv
Starting Member

India
1 Posts

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

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...



VenuJD

visakh16
Very Important crosS Applying yaK Herder

India
52249 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
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.16 seconds. Powered By: Snitz Forums 2000