first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

T-SQL: Dynamic SQL in a Stored Procedure; sp_executesql

DECLARE @vSQL nvarchar(4000)

SET @vSQL = 'SELECT * FROM authors'

EXECUTE sp_executesql @vSQL

mod date: 2001-05-27T01:14:43.000Z