Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dzirkelb
Yak Posting Veteran
53 Posts |
Posted - 2009-10-07 : 17:24:17
|
I am importing a .fmt for a bulk insert, but, it is causing the data to be incorrect. here is the .fmt file:8.0121 SQLCHAR 0 255 "\t" 1 Allied ""2 SQLCHAR 0 255 "\t" 2 Mfr ""3 SQLCHAR 0 255 "\t" 3 Mfr ""4 SQLCHAR 0 255 "\t" 4 Product ""5 SQLINT 0 4 "\t" 5 Price ""6 SQLCHAR 0 255 "\t" 6 UOM ""7 SQLINT 0 4 "\t" 7 Lead ""8 SQLINT 0 4 "\t" 8 Sells ""9 SQLINT 0 4 "\t" 9 Available ""10 SQLINT 0 4 "\t" 10 Min ""11 SQLINT 0 4 "\t" 11 Catalog ""12 SQLCHAR 0 255 "\r\n" 12 URL ""this is coming from a tab deliminated text file. I read somewhere that everything should be SQLCHAR for text files; however, when I change them, then I get an invalid When I run it as SQLINT, I get no erros; however, I get bad data. Example:What should be data of 1, results on the import of 153104672.Any ideas? |
|
dzirkelb
Yak Posting Veteran
53 Posts |
Posted - 2009-10-08 : 09:24:38
|
Here is the data formats:1: varchar 2552: varchar 2553: varchar 2554: varchar 2555: float 86: varchar 2557: int 48: int 49: int 410: int 411: varchar 25512: int 4And, I am not importing all fields. |
|
|
|
|
|