dbTalk Databases Forums  

Import from CSV - "Incomplete file format information" error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Import from CSV - "Incomplete file format information" error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lmcphee
 
Posts: n/a

Default Import from CSV - "Incomplete file format information" error - 03-21-2006 , 09:05 PM






I used the Enterprise Manager's Import wizard to import data from a CSV file
with column headers in 1st row. Row delimiter is LF.

I set the Save as Visual Basic options and then execute the import. The file
gets imported OK. Then I delete the table and use the VB module in a project
to do the import on the exact same CSV file. But I get "MS DTS Flat File
Rowset Provider incomplete file format information - file cannot be opened."
error msg on the Execute call.

Any ideas how to tweak the generated VB code to get around this?

LMcPhee

Reply With Quote
  #2  
Old   
lmcphee
 
Posts: n/a

Default RE: Import from CSV - "Incomplete file format information" error - 03-21-2006 , 09:38 PM






Never mind - found the answer. The generated code does NOT specify the
Connection's ConnectionProperties("Row Delimiter") value. I added a line to
set to = vbLf and it worked.

"lmcphee" wrote:

Quote:
I used the Enterprise Manager's Import wizard to import data from a CSV file
with column headers in 1st row. Row delimiter is LF.

I set the Save as Visual Basic options and then execute the import. The file
gets imported OK. Then I delete the table and use the VB module in a project
to do the import on the exact same CSV file. But I get "MS DTS Flat File
Rowset Provider incomplete file format information - file cannot be opened."
error msg on the Execute call.

Any ideas how to tweak the generated VB code to get around this?

LMcPhee

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.