GAURAVKAUSHIK26 (9/9/2008)
You can define cr/lf delimiter for getting data in rows. As far as columns are concerned, you can use substring function of sql to create and fill columns. eg: if you need to spilt 'goodluck' into 2 columns - good|luckcol1 = substring(columnName,starting position,length)
col1=substring(ColumnName,1,4).....will give 'good' from column columnName which can be filled into new created column..
Yep, that would work, as well, and it'll be pretty fast. But a Bulk Insert using a BCP Format file would be faster.
Still waiting on the OP to attach a sample file and the CREATE statement for the target table, though...
--Jeff Moden
Change is inevitable... Change for the better is not.