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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted May 30, 2013, 11:13 PM
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.
Pankaj PandeyPosted May 30, 2013, 8:23 AM
try this, i think it will helpfull for you..
Sunny SharmaPosted May 30, 2013, 8:21 AM
use the sample below to achieve this purpose:
BULK INSERT
Please don't forget to mark it as answer if it helps!
Thanks.