Connecting Tech Pros Worldwide Forums | Help | Site Map

Help in Insert into select from SQL

OraMaster's Avatar
Member
 
Join Date: Aug 2009
Location: Pune, India
Posts: 76
#1: Sep 22 '09
Hi All

I have attached one insert into select from kind of SQL with this message and the procedure to which it belong. Now the problem is when i run this select SQL separately its giving result very fast (within 2 seconds) but when i execute procedure it's taking 3-4 miniutes. I am not figure out exactly where is the problem since I am new to SQL server. Please check the attachement and suggest me any improvment in SQL.

All three files along with execution plan are in .zip file.

Please let me know if you guys need more information on this.

Thanks in advance
Bhushan
Attached Files
File Type: zip SQL server tasks.zip (11.7 KB, 19 views)

OraMaster's Avatar
Member
 
Join Date: Aug 2009
Location: Pune, India
Posts: 76
#2: Sep 22 '09

re: Help in Insert into select from SQL


Quote:

Originally Posted by OraMaster View Post

Hi All

I have attached one insert into select from kind of SQL with this message and the procedure to which it belong. Now the problem is when i run this select SQL separately its giving result very fast (within 2 seconds) but when i execute procedure it's taking 3-4 miniutes. I am not figure out exactly where is the problem since I am new to SQL server. Please check the attachement and suggest me any improvment in SQL.

All three files along with execution plan are in .zip file.

Please let me know if you guys need more information on this.

Thanks in advance
Bhushan

Hi All,

I have solved the issues wt my procedure. Thanks for those who atleast viewed my post :)

Regds,
Bhushan
Reply