Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: EXECUTE

    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

Viewing post 1 (of 1 total)