Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
NenadV
Creator II
Creator II

How to assign double quotes in a variable?

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

 

Labels (1)
1 Solution

Accepted Solutions
NenadV
Creator II
Creator II
Author

Thanks Steeefan. This has worked: vDBSchema = "'DB Live.dbo.'";

View solution in original post

2 Replies
steeefan
Luminary
Luminary

Try one of these:

SET vDBSchema = '"DB Name".dbo';
LET vDBSchema = chr(34) & 'DB Name' & chr(34) & '.dbo';
NenadV
Creator II
Creator II
Author

Thanks Steeefan. This has worked: vDBSchema = "'DB Live.dbo.'";