dbTalk Databases Forums  

import of CSV appears correct in excel and 2000 not in 2k5

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


Discuss import of CSV appears correct in excel and 2000 not in 2k5 in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: import of CSV appears correct in excel and 2000 not in 2k5 - 03-20-2008 , 03:55 AM






Hi Mike,

SQL Server 2000 used the VB escape method of double quoting - so ""
for " instead of \" .. if that makes sense

In this case I suspect you will need to manually split the columns.
In fact, if I take the sample row above and try to create a flat file
connection to a file containing that row I get a warning stating that
the row contains text qualifiers and will produce an error at runtime.

I would recommend configuring your file connection to just have 1
column, and then use a script transformation task to split the data
into columns.

Good luck!
J

Reply With Quote
  #22  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: import of CSV appears correct in excel and 2000 not in 2k5 - 03-20-2008 , 03:55 AM






Hi Mike,

SQL Server 2000 used the VB escape method of double quoting - so ""
for " instead of \" .. if that makes sense

In this case I suspect you will need to manually split the columns.
In fact, if I take the sample row above and try to create a flat file
connection to a file containing that row I get a warning stating that
the row contains text qualifiers and will produce an error at runtime.

I would recommend configuring your file connection to just have 1
column, and then use a script transformation task to split the data
into columns.

Good luck!
J

Reply With Quote
  #23  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: import of CSV appears correct in excel and 2000 not in 2k5 - 03-20-2008 , 03:55 AM



Hi Mike,

SQL Server 2000 used the VB escape method of double quoting - so ""
for " instead of \" .. if that makes sense

In this case I suspect you will need to manually split the columns.
In fact, if I take the sample row above and try to create a flat file
connection to a file containing that row I get a warning stating that
the row contains text qualifiers and will produce an error at runtime.

I would recommend configuring your file connection to just have 1
column, and then use a script transformation task to split the data
into columns.

Good luck!
J

Reply With Quote
  #24  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: import of CSV appears correct in excel and 2000 not in 2k5 - 03-20-2008 , 03:55 AM



Hi Mike,

SQL Server 2000 used the VB escape method of double quoting - so ""
for " instead of \" .. if that makes sense

In this case I suspect you will need to manually split the columns.
In fact, if I take the sample row above and try to create a flat file
connection to a file containing that row I get a warning stating that
the row contains text qualifiers and will produce an error at runtime.

I would recommend configuring your file connection to just have 1
column, and then use a script transformation task to split the data
into columns.

Good luck!
J

Reply With Quote
  #25  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: import of CSV appears correct in excel and 2000 not in 2k5 - 03-20-2008 , 03:55 AM



Hi Mike,

SQL Server 2000 used the VB escape method of double quoting - so ""
for " instead of \" .. if that makes sense

In this case I suspect you will need to manually split the columns.
In fact, if I take the sample row above and try to create a flat file
connection to a file containing that row I get a warning stating that
the row contains text qualifiers and will produce an error at runtime.

I would recommend configuring your file connection to just have 1
column, and then use a script transformation task to split the data
into columns.

Good luck!
J

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.