How Can I Do Something Like Use Databasename – FaqCode4U.com

EXECUTE(‘USE ‘ + @DatabaseName) — SQL injection risk! SELECT name FROM sys.tables. So you’d need to do: DECLARE @DatabaseName NVARCHAR(MAX)

Related:

  • No Related Posts

Leave a Reply