Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This doesn't work.
vDBSchema = 'DB Name.dbo.';
SQL select * from $(vDBSchema)Invoices
and this works in the SQL Management Studio:
select * from from "DB Name".dbo.Invoices
Thanks Steeefan. This has worked: vDBSchema = "'DB Live.dbo.'";
Try one of these:
SET vDBSchema = '"DB Name".dbo';
LET vDBSchema = chr(34) & 'DB Name' & chr(34) & '.dbo';
Thanks Steeefan. This has worked: vDBSchema = "'DB Live.dbo.'";