Groups | Blog | Home
all groups > sql server (alternate) > february 2006 >

sql server (alternate) : sp_executesql question


Robert
2/13/2006 8:38:50 PM
I have not used this sp. We have a dynamic SQL statement generated by a sp.
For performance reasons I would like to use it to reduce the number of
explain plans created. I would like to understand its usage and pitfalls
(if any) to its use. Any comments from the user community?

Erland Sommarskog
2/13/2006 11:00:20 PM
Robert (robert.j.sipe@boeing.com) writes:
[quoted text, click to view]

Explain plans? Isn't that an Oracle term? :-)

Anyway, I have this article on my web site about dynamic SQL:
http://www.sommarskog.se/dynamic_sql.html.



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
Robert
2/14/2006 12:33:44 AM
Thanx Erland. I guess you are correct. In SQL Server it is refered to as
an execution plan. Thanx for the link. I am looking forward to reviewing
it. It is obvious you have put a lot of time and energy in the write-up.
Merci et au revoir.


[quoted text, click to view]

AddThis Social Bookmark Button