I need to do a Bulk Insert of a comma delimited file into a predefined table. Not a problem under normal situations... but...
I have a Generic table with 500 columns defined:
( Col001, Col002, Col003 ... Col500 )
The ASCII data I need to pull from a comma delimited file will have uneven columns though!
Row1 has 216 columns
Row2 has 265 columns
...
Row9 has 350 columns
The fact is, I have no idea how many columns I will be pulling into the generic table. Is there a way to force the Bulk Insert to populate the table columns up to whatever number of columns are being pulled?
Each row does have the '\n' row terminator.
Thanks for your help!!
Rick
(Men are from Earth, Women are from Earth. DEAL with it!)
I have a Generic table with 500 columns defined:
( Col001, Col002, Col003 ... Col500 )
The ASCII data I need to pull from a comma delimited file will have uneven columns though!
Row1 has 216 columns
Row2 has 265 columns
...
Row9 has 350 columns
The fact is, I have no idea how many columns I will be pulling into the generic table. Is there a way to force the Bulk Insert to populate the table columns up to whatever number of columns are being pulled?
Each row does have the '\n' row terminator.
Thanks for your help!!
Rick
(Men are from Earth, Women are from Earth. DEAL with it!)