Hello,
I am using an SQL script to create a temporary database backup. While
there may be "other" or "better" ways to do this - I am really only
asking if the syntax (with tweaking) is possible - and if so what it
is.
Here is a very stripped down version of what I'm trying to attempt:
set @backUpName = 'myBackup';
create database @backUpName;
This throws a syntax error, but I don't know why.
Thanks!
CF
I am using an SQL script to create a temporary database backup. While
there may be "other" or "better" ways to do this - I am really only
asking if the syntax (with tweaking) is possible - and if so what it
is.
Here is a very stripped down version of what I'm trying to attempt:
set @backUpName = 'myBackup';
create database @backUpName;
This throws a syntax error, but I don't know why.
Thanks!
CF
Comment