Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Global variable in Execute SQL Task comes with quotes

$
0
0

Hello,

I have a global variable that represents a file name and I would like to use this variable inside of a Execute SQL Task when I'm writing a query. 

The query I have in the Execute SQL Task is: CREATE TABLE SCHEMA.?

This is supposed to create a table inside the Netezza system which is where my OLEDB is connected to. (The connection is successful)

The problem that I'm getting when I look at the output is: ERROR: 'CREATE TABLE SCHEMA.'TableName' ' Expecting an identifier found a "keyword".

As you can see, it adds quotations around my tablename. In the parameter mapping tab inside of the Execute SQL Task Editor, I set the variable's datatype to NVARCHAR and my  variable is stored as a string. How can I access the value of the variable without the quotations?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>