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!

Dyn SQL performance.

Status
Not open for further replies.

CapsuleCorpJX

IS-IT--Management
Jun 23, 2004
70
US
Hey I use dynamic SQL in my stored procedures so I can pass the database name as a parameter.

Does anyone know if a regular stored procedure runs faster than a stored procedure that uses dynamic sql?
 
Probably not, because the SQL must be parsed and optimized by the PE regardless if it's dynamic or not.

Dieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top