how to import text file content in a database. The text is seperated by the following symbol "|"
the form of the line is :
a|b|cdfaeff|00100|bombay|INR|India
n|a|yhfaaff|00102|bombay|INR|India
Thank you for your help
How to import text file content in a database.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sunny SharmaRank #223 · 11.1K reputationPosted May 30, 2013, 4:21 AM EDT
use the sample below to achieve this purpose:
BULK INSERT
Please don't forget to mark it as answer if it helps!
Thanks.
Pankaj PandeyRank #642 · 3.7K reputationPosted May 30, 2013, 4:23 AM EDT
try this, i think it will helpfull for you..
Jignesh TrivediRank #16 · 50.3K reputationPosted May 30, 2013, 7:13 PM EDT
hi,
You have several options for inserting data into SQL Server from a text file.
SQL Server Import and Export wizard
http://msdn.microsoft.com/en-us/library/ms141209.aspx
T-SQL BULK INSERT command
http://msdn.microsoft.com/en-us/library/ms188365.aspx
hope this will help you.