Viewing post 1 (of 1 total)
While its certainly easier to use brackets/parenthesis around @sqlstring don't forget about sp_executesql.
declare @sqlstring nvarchar (255)
set @sqlstring = 'use ' + 'master' + ' dbcc showfilestats'
execute sp_executesql @sqlstring
February 14, 2012 at 6:30 am
#1446813