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
  #1  
Old   
mike.mcneer@gmail.com
 
Posts: n/a

Default import of CSV appears correct in excel and 2000 not in 2k5 - 03-18-2008 , 07:53 PM






Ok I am trying to create a flat file connection manager using comma
delimited and " as the text qualifier. The file imports into excel
properly, using import wizard in Sql Server 2000 it formats properly,
using import wizard or flat file connection manager in 2005 it does
not format properly. Below is the sample text that does not parse out
correctly in 2005:

"1419720","ADVENTURES OF FLYGUY, THE (SEASON 1) EP# 0103 ""COSMO NOT/
BRAIN GAME, THE"" (4X3 1.33 FULL FRAME)","PICTURES ENTERTAINMENT
WORLDWIDE PRODUCT FULFILLMENT","3/4/2008"

Instead of 4 columns it splits out into 5 columns in 2k5. The format
of the file looks correct. Any ideas please let me know.
thanks,
Mike

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

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






Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

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

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



Hi Mike,

<quote> ... 0103 ""COSMO NOT/ BRAIN GAME, THE"" ... </quote>

I suspect the above quotes are causing the , after GAME to be detected
as a new column. SSIS uses the "\" to escape "'s, unlike the vb /
2000 approach of doubling the quote. Try:

.... 0103 \"COSMO NOT/ BRAIN GAME, THE\" ...

*Disclaimer: I haven't actually tried it

Good luck!
J

Reply With Quote
  #10  
Old   
mike.mcneer@gmail.com
 
Posts: n/a

Default Re: import of CSV appears correct in excel and 2000 not in 2k5 - 03-19-2008 , 02:44 PM



Well I could understand that if I had the ability to change the
incoming data, but this is coming from a third party system which i
have no control over.
Still it does not answer the question.. Why would it work in Sql
server 2000 and within excel but not within Sql server 2005?
Thanks,
MM

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.