Hi
Hopefully someone can help me with this. I have a script task that populates some variables, and one of these I pass out as the Name of the previous Month. I then want to use this in my following SQL task to create a table in a connection, where the connection also has a dynamic string. In short I have been reading an online tutorial that says use ? in your SQL task to map the parameter in the sql task to the sql statement but just keep getting error
"Error: Execute SQL Task: Executing the query "CREATE TABLE ?" In the SQL task I have the variable monthName mapped as parameter and using ? in create table statement. The settings in SQL task parameter mapping are:
User::monthName || Input || NVarchar || pMonthName
In general settings I have resultset as single row, using my excel connection manager as connection and have type as excel. Also have SQL statement as:
CREATE TABLE ? (
`Field1` DATETIME,
`Field2` INTEGER,
`Field3` NVARCHAR(255),
`Field4` NVARCHAR(255),
`Field5` NVARCHAR(255),
`Field6` NVARCHAR(255)
)
And geterror Error: Execute SQL Task: Executing the query "CREATE TABLE ?" at the SQL task.
Andrew (MCDST)