dbTalk Databases Forums  

problem importing a fixed field flat file

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


Discuss problem importing a fixed field flat file in the microsoft.public.sqlserver.dts forum.



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

Default problem importing a fixed field flat file - 05-30-2006 , 03:16 PM






Hi all,

I just ran into some problems trying to import different
text files using the fixed field file format tool.
Some of the files get their records truncated. That is
if the first record is shorter than any other records in the file, Teh limit
is set at the end of the first record instead of at the end of the longest
record.

Another problem is that for some other files, the only
record that is shown is the first record, and no others.
I checked the file and was able to verify that the records indeed had the
cr/lf for the row delimitation.

What can I do to solve this problems? Thanks in
advance for any advice that you can give me.

Carlos.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: problem importing a fixed field flat file - 05-30-2006 , 04:07 PM






Hello carlos,

You might want to look at padding the rows.

Have a look over this article it may help.

http://www.databasejournal.com/featu...le.php/1462341

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi all,

I just ran into some problems trying to import different
text files using the fixed field file format tool.
Some of the files get their records truncated. That is
if the first record is shorter than any other records in the file, Teh
limit
is set at the end of the first record instead of at the end of the
longest
record.
Another problem is that for some other files, the only
record that is shown is the first record, and no others.
I checked the file and was able to verify that the records indeed had
the
cr/lf for the row delimitation.
What can I do to solve this problems? Thanks in
advance for any advice that you can give me.
Carlos.




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

Default Re: problem importing a fixed field flat file - 06-02-2006 , 01:25 PM



Hi Allan,

thank you for your suggestion. I did download the dll,
and created the custom task. However, I do not know
how to execute it properly. I tried by executing just the
custom task, but it reported an error. Can you help me on that?

Thanks,

Carlos.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Hello carlos,

You might want to look at padding the rows.

Have a look over this article it may help.

http://www.databasejournal.com/featu...le.php/1462341

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Hi all,

I just ran into some problems trying to import different
text files using the fixed field file format tool.
Some of the files get their records truncated. That is
if the first record is shorter than any other records in the file, Teh
limit
is set at the end of the first record instead of at the end of the
longest
record.
Another problem is that for some other files, the only
record that is shown is the first record, and no others.
I checked the file and was able to verify that the records indeed had
the
cr/lf for the row delimitation.
What can I do to solve this problems? Thanks in
advance for any advice that you can give me.
Carlos.






Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: problem importing a fixed field flat file - 06-04-2006 , 06:24 PM



Hello Carlos,

Did you register the dll?

What was the error?

Allan

Quote:
Hi Allan,

thank you for your suggestion. I did download the dll,
and created the custom task. However, I do not know
how to execute it properly. I tried by executing just the
custom task, but it reported an error. Can you help me on that?
Thanks,

Carlos.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:f0343b03297e78c8524c92a98060 (AT) msnews (DOT) microsoft.com...
Hello carlos,

You might want to look at padding the rows.

Have a look over this article it may help.

http://www.databasejournal.com/featu...le.php/1462341

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com
Hi all,

I just ran into some problems trying to import different
text files using the fixed field file format tool.
Some of the files get their records truncated. That is
if the first record is shorter than any other records in the file,
Teh
limit
is set at the end of the first record instead of at the end of the
longest
record.
Another problem is that for some other files, the only
record that is shown is the first record, and no others.
I checked the file and was able to verify that the records indeed
had
the
cr/lf for the row delimitation.
What can I do to solve this problems? Thanks in
advance for any advice that you can give me.
Carlos.



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.