dbTalk Databases Forums  

Import a text file problem

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


Discuss Import a text file problem in the microsoft.public.sqlserver.dts forum.



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

Default Import a text file problem - 01-20-2005 , 09:53 AM






Hello.

I have a text file with names, addresses, email, etc... It contains over
700,000 records. When I use the DTS text driver I only get just over 400,000
records. If I Import the data into MS Access, I get the full 700,000. I
looked at the file in at Hex editor and the row Identifier is a line feed
(0A). The contains abount 9 fixed length fields.

When looking at the 400,00 records that it did import, I notice that some of
the characters in the last field are cut-off. When viewing these cut-off
records with the hex editor, they look perfect, no other characters exist.

I'm starting to go bauld from pulling my hair out, HELP!


Reply With Quote
  #2  
Old   
Kevin Thomas
 
Posts: n/a

Default Re: Import a text file problem - 01-20-2005 , 11:24 AM






Just a side thought here. If you've gotten all 700,000 records into Access,
could you then try and import them into SQL Server from Access? I'm
assuming SQL Server is your final destination for this data.

I know this doesn't help with your core problem, but I thought any idea that
might help you keep your hair might be worth mentioning. :-)

Kevin

"GJC" <GJC (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello.

I have a text file with names, addresses, email, etc... It contains over
700,000 records. When I use the DTS text driver I only get just over
400,000
records. If I Import the data into MS Access, I get the full 700,000. I
looked at the file in at Hex editor and the row Identifier is a line feed
(0A). The contains abount 9 fixed length fields.

When looking at the 400,00 records that it did import, I notice that some
of
the characters in the last field are cut-off. When viewing these cut-off
records with the hex editor, they look perfect, no other characters exist.

I'm starting to go bauld from pulling my hair out, HELP!




Reply With Quote
  #3  
Old   
Gary7
 
Posts: n/a

Default Re: Import a text file problem - 01-20-2005 , 11:49 AM



Thaks for ypur reply Kevin.

I've already done that to remedy the initial import, but I will be getting
smaller text files each week. I need to automate this process and the Access
soultion is a manual one.

This is very strange.

Well, if you think of anything....

Thanks again.

"Kevin Thomas" wrote:

Quote:
Just a side thought here. If you've gotten all 700,000 records into Access,
could you then try and import them into SQL Server from Access? I'm
assuming SQL Server is your final destination for this data.

I know this doesn't help with your core problem, but I thought any idea that
might help you keep your hair might be worth mentioning. :-)

Kevin

"GJC" <GJC (AT) discussions (DOT) microsoft.com> wrote in message
news:CEB4C999-4EE4-40C7-82A0-DA8ACA4D4258 (AT) microsoft (DOT) com...
Hello.

I have a text file with names, addresses, email, etc... It contains over
700,000 records. When I use the DTS text driver I only get just over
400,000
records. If I Import the data into MS Access, I get the full 700,000. I
looked at the file in at Hex editor and the row Identifier is a line feed
(0A). The contains abount 9 fixed length fields.

When looking at the 400,00 records that it did import, I notice that some
of
the characters in the last field are cut-off. When viewing these cut-off
records with the hex editor, they look perfect, no other characters exist.

I'm starting to go bauld from pulling my hair out, HELP!





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.