Link to home
Start Free TrialLog in
Avatar of rkellow
rkellowFlag for United States of America

asked on

Reading a delimited text file into SQL Server table

Hello,

I'm trying to find the best way to read a pipe delimited flat file into a SQL Server table.

Thank you.
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Just use Import/Export Wizard of SQL Server to import records into your table from the Pipe delimited flat file..
If not, then you can use either BCP or OPENROWSET to insert records from the flat file..
ASKER CERTIFIED SOLUTION
Avatar of k_murli_krishna
k_murli_krishna
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rkellow

ASKER

Thank you.  I neglected to say that I need to select only certain fields from the text file and it seems as the B) answer will work best.  I will be getting this text file every day and need to add rows to the SQL table but only certain fields.  I have another SQL question pertaining to this but I will open a new question for it.

Thank you again,
r