Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which is Faster??

Status
Not open for further replies.

Glowworm27

Programmer
May 30, 2003
587
US
I have a SQL task in my DTS package, I was wondering is it faster to have the actual SQL script in the SQL task, or is it faster to have the SQL Task Execute a stored procedure that does the same thing as the SQL script?



George Oakes
Check out this awsome .Net Resource!
 
Stored procedures can be quicker than straight SQL especially if there is conditional processing. Also a query execution plan is created on first running, and cached, so if the Stored Procedure code remains static it reuses the execution plan.




[tt]|_ |_ _ | _ _
|, | )(/, |(_)| )
'[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top