![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
All fields in a text file are charchter fields. You have a definition set up for the destination. What the error is telling you is that there is a mapping between an attribute in the source (character) and an attribute in the destination (int). That in itself is not a problem. There will be an implicit conversion attempt on the data from the source. In your case though you have charcter data in that source field that cannot be converted i.e. AAABBB. Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Datatype guessing is a feature of the XL driver. Even then though this just results in NULL values being entered for data that does not meet that criteria. I am a little confused by your problem though. Can you show us a file? Are you simply doing a 1:1 in a Data Transform Task? Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Input data looks like this (17,000 rows) 001621409 008461819 013468129 038502183 040421644 040684765 040761566 040822084 040888238 041463919 041822020 042409192 042605417 042702359 042762927 043446946 043547649 044388726 044409004 044508681 044563638 044702011 044749159 045304993 045425327 045621329 045667350 045766740 045885223 046529845 046562957 046769910 047449737 047460243 047563607 047769241 048569101 049406143 049407998 049467989 049683402 049726466 049746894 060483592 063505864 127467250 156466400 196329445 301624793 367529700 519926763 581594426 600124409 .... (3000 rows) AABBBBBBB 256806100 436900300 528870821 535588981 545952822 547531348 548198644 555952578 555953045 561979073 564254356 573020111 621508251 The destination is a SQL Server 2k char(9) column, with fastload on and bulk size set to 1000. I am using straight copy column, but have tried every other kind of transform possible (trim, substring, activex, uppercase), but none seem to help (transform results are written to a buffer; the problematic char->int conversion does not happen until the actual bulk insert operation takes place). "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:VA.00000073.1140a0dc (AT) no-spam (DOT) sqldts.com... Datatype guessing is a feature of the XL driver. Even then though this just results in NULL values being entered for data that does not meet that criteria. I am a little confused by your problem though. Can you show us a file? Are you simply doing a 1:1 in a Data Transform Task? Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org |
#8
| |||
| |||
|
|
In article <o%VGc.5153$sD4.1268 (AT) newsread3 (DOT) news.atl.earthlink.net>, Isak Dinesen wrote: Input data looks like this (17,000 rows) 001621409 008461819 013468129 038502183 040421644 040684765 040761566 040822084 040888238 041463919 041822020 042409192 042605417 042702359 042762927 043446946 043547649 044388726 044409004 044508681 044563638 044702011 044749159 045304993 045425327 045621329 045667350 045766740 045885223 046529845 046562957 046769910 047449737 047460243 047563607 047769241 048569101 049406143 049407998 049467989 049683402 049726466 049746894 060483592 063505864 127467250 156466400 196329445 301624793 367529700 519926763 581594426 600124409 .... (3000 rows) AABBBBBBB 256806100 436900300 528870821 535588981 545952822 547531348 548198644 555952578 555953045 561979073 564254356 573020111 621508251 The destination is a SQL Server 2k char(9) column, with fastload on and bulk size set to 1000. I am using straight copy column, but have tried every other kind of transform possible (trim, substring, activex, uppercase), but none seem to help (transform results are written to a buffer; the problematic char->int conversion does not happen until the actual bulk insert operation takes place). "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:VA.00000073.1140a0dc (AT) no-spam (DOT) sqldts.com... Datatype guessing is a feature of the XL driver. Even then though this just results in NULL values being entered for data that does not meet that criteria. I am a little confused by your problem though. Can you show us a file? Are you simply doing a 1:1 in a Data Transform Task? Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org Tried with the BULK INSERT task also and it worked. Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Is there anyway that you have mapped a Source attribute to an INT destination attribute? That can be the only explanation for me. Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org |
![]() |
| Thread Tools | |
| Display Modes | |
| |