View Single Post

   
  #3 (permalink)  
Old 02-29-2008, 08:07 AM
David Portas
 
Posts: n/a
Default Re: Convert variable into dynamic select

Why do you want to put the SQL statements into a table? You'll have to
use sp_executesql to do this and put up with the performance, security
and maintenance issues inherent in dynamic SQL. I'm sure there ought to
be a better way to build a Sales Report!

--
David Portas
SQL Server MVP
--

Reply With Quote