I need a command in a .sql
file for SQL Server 2012 that lets me run strings as commands, like:
set @command= 'create table mytable (...);';
run(@command);
Preferably with some kind of string format for strings and/or numbers. Usually I do this in C# but I was wondering if I can keep it all in a .sql
file.