November 7, 2014 at 6:36 am
Hi,
I'm trying to study the mechanism described in here:
http://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
When I run the Sql Task with the table/sheet creation command:
CREATE TABLE 'Data' ('YearMonth' Long, 'ProductCode LongText, 'ProductStandardCost' Long, 'TotalProductCost' Long, 'SalesAmount' Long)
I get the error:
Error: 0xC002F210 at CreateNewExcel, Execute SQL Task: Executing the query "CREATE TABLE 'Data' ('YearMonth' Long, 'ProductCod..." failed with the following error: "Syntax error in CREATE TABLE statement.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
What might be wrong here? I believe I've done everything like in the URL example. Excel 97-2003
Regards, Ville
November 7, 2014 at 6:49 am
Be aware that those are special quotes in the CREATE TABLE statement.
` is not the same as '
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
November 7, 2014 at 6:58 am
Thank you!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply