Viewing post 1 (of 1 total)
You can dynamically prepare a SQL statement in a VARCHAR variable and then execute it using EXEC statement as follows..
DECLARE @query VARCHAR(1000)
SET @query ='SELECT * FROM myTable
WHERE Id='''...
January 28, 2008 at 6:40 am
#772389