|
SQLServerDBA_Dan
Aged Yak Warrior
752 Posts |
Posted - 2004-02-06 : 15:32:12
|
| These questions are about importing files with uneven record lengths into SQL Server 2k.uneven file example1:Header record,data,data,dataActual data record,data,data,data,data,data,datatrailer record,data,datauneven file example2:Header record,data,data,dataActual data record type 1,data,data,data,data,data,dataActual data record type 2,data,data,data,data,data,data,data,data,data,data,data,data,dataActual data record type 3,data,datatrailer record,data,dataQuestion 1: What is the specific name of this type of file? I have seen them mostly used with unix/informix applications.Question 2: Short of writing VB code to parse the file, How would you go about importing it into SQL Server? If I try to just import the records I get this error: "Too many columns found in the current row;non-whitespace characters were found after the last defined column's data." I know MS Access will handle the import. But then I would need to use access to import the file and then DTS the access table into SQL Server 2k. That just seems wrong to me...Any help would be very nice.ThanksDanielSQL Server DBA |
|