Friday, March 23, 2012

executing a query

i have a query stored in a string say @.query. how do a execute the query in that variable.

Quote:

Originally Posted by devikacs

i have a query stored in a string say @.query. how do a execute the query in that variable.


exec sp_executesql @.query
(or)
exec(@.query)

No comments:

Post a Comment