Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am trying to export some data to excel file using SSIS. But when I reached the "Create Table" screen in Excel Destination component, after I have enter my script, the system prompt me the error message as title above. Below are my script in "Create Table" screen:

SQL
CREATE TABLE componentReport(
WorkNumber VARCHAR(20),
UnitDateEnd DATETIME2(3),
UnitDateCreated DATETIME2(3),
UnitId BIGINT,
Track INT,
SupplierName VARCHAR(50),
Stage INT
)


What I have tried:

Changed the VARCHAR into String/TEXT but the same, removed any possible brackets.
Posted
Updated 29-Dec-16 4:13am

1 solution

VARCHAR, DATETIME2, BIGINT and INT do not exist as Excel Destination data types.

See the documentation - Excel Destination[^]

Try
SQL
CREATE TABLE componentReport(
WorkNumber NVARCHAR(20),
UnitDateEnd DATETIME(3),
UnitDateCreated DATETIME(3),
UnitId LONG,
Track INTEGER,
SupplierName NVARCHAR(50),
Stage INTEGER
)
Alternatively try exporting to a CSV or XML rather than an Excel Binary - from memory the Excel drivers were a bit flaky
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900