Execute is for running stored procedures, it won't let you run a Select statement. you would need to run
Code:execute sp_executesql @sql
|
Results 1 to 6 of 6
Threaded View
|
Click Here to Expand Forum to Full Width |