Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS-Import textfile

Status
Not open for further replies.

easyit

Programmer
Aug 22, 2003
443
NL
Hi,

I have a textfile that isn't importing correctly.

Code:
Contract     CRblk AanF  Gem   CR          Product   AanA  AO  Portie    Instl       Inhuis-     Status1 Status2 Geblokkeerd   Aanpassings   Normaal
3005568961   XX    F     1     5033468881  NG        A     01  KC0907    6012456690  01.05.2006     X       X    XX            9999          508001313

                                           E               01  NC1211    6001475071  05.10.2005
                                           N               01  NC1211    6001475084  01.12.2000
                                           N               01  NC1211    6001475084  05.10.2005
                                           N               01  NC1211    6001479264  31.10.2005
                                           N               01  NC1211    6001479264  01.12.2000
                                           N               01  NC1217    6001479368  11.01.2002
                                           N               01  NC1217    6001479368  01.12.2000
                                           E               01  NC1216    6001483405  01.12.2000
                                           N               01  NC1216    6001483414  01.12.2000
                                           N               01  NC1216    6001483473  01.12.2000
                                           N               01  NC1216    6001483473  14.10.2006
3005558083               1     5033424792  N               01  KC1202    6009560551  02.03.2006                                              505001826
3005558175               1     5033472005  G               01  KC1017    6008941146  01.03.2006                                              519000116
3005558175               1     5033472006  NG              01  KC1017    6012571123  01.03.2006                                              522000031
3005558456               1     5033412503  N               01  KC0926    6014957830  14.08.2006             X
3005558459               1     5033412956  N               01  KC0926    6014957836  14.08.2006             X
3005558489               1     5033427457  E               03  NC0619    6001717824  03.10.2005                                              511000837
3005558489               1     5033427457  E         A     01  NC0619    6001717824  03.10.2005                                              511000837
3005558489               1     5033427458  N               01  NC0619    6001717835  03.10.2005                                              511000837
3005558489               1     5033427458  N               03  NC0619    6001717835  03.10.2005                                              511000837
3005558495         F                                           RC0407                00.00.0000                                              415079227
3005558496         F                                       03  NC0619                00.00.0000                                              490055643
3005558519         F                                       03  EC0216                00.00.0000                                              450073302
3005558671               1     5033417180  N               03  RC1020    6012226148  01.01.2006             X    K1
3005558671               1     5033417181  E               03  RC1020    6012226149  01.01.2006             X    K1
3005558671               1     5033417182  G               03  RC1020    6012226150  01.01.2006             X    K1
3005558671               1     5033417183  NG              03  RC1020    6013558208  01.01.2006             X    K1
3005558677               1     5033417461  E               03  KC0507    6010323131  13.12.2003             X

Code:
Contract        CRblk   AanF    Gem     CR        Product       AanA AO Portie  Instl       Inhuis    Status1   Status2   Geblokkeerd  Aanpassings   Normaal
                                                  E             01      NC1211  6001475071  05.10.2005                                  N
                                                  N             01      NC1211  6001475084  05.10.2005                                  N
                                                  N             01      NC1211  6001479264  01.12.2000                                  N
                                                  N             01      NC1217  6001479368  01.12.2000                                  E

Basically what happens is that the end of a line in the textfield isn't triggereing the creation of a new record. I've tried several settings (type of txtfile, EOL character etc)in the DTS package, but no success.

Is there anybody who has a thought about why this is happening and maybe knows of a solution?



EasyIT

"Do you think that’s air you're breathing?
 
goabck to whoever you get this from and find out what they are using as the end of line indicator when they create it and then make your dts match that. I suggest ctrl-linefeed which is the most common one.

Questions about posting. See faq183-874
 
Hi,

thanks for your response. i't is a SAP output file, ANSI. It has been used in MsAcces for a year, imported daily without problem. i'm converting a acdess app into a SQl server app and tried every type of line ending.
I am hoping somebody can tell me how the import DTS works. I rather not go into programming a parsing function...


EasyIT

"Do you think that’s air you're breathing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top