I’m using the Import\Export wizard to export the top 5 lines from a MS Sql table into a fixed format (“ragged”) file. But I want the first record to contain the column names of the exported fields so I selected the “Column names in the first data row” option of the “Choose a Destination” box. When I run the Package I get:
>>>
· Information 0x402090dc: Data Flow Task: The processing of file "C:\barkingdog\ExportWithheader.txt" has started (SQL Server Import and Export Wizard)
· Error 0xc0202095: Data Flow Task: Failed to write out column name for column "CustomerID".
(SQL Server Import and Export Wizard)
(SQL Server Import and Export Wizard)
Error 0xc004701a: Data Flow Task: component "Destination - ExportWithheader_txt" (49) failed the pre-execute phase and returned error code 0xC0202095.
(SQL Server Import and Export Wizard)
(SQL Server Import and Export Wizard)
>>>
When I de-select the “Column names” option, the package works fine. Other than manually, how can I et the column names in output file?
Answer:
hope that helps.
No comments:
Post a Comment