Is there any other way to insert into table from csv/text file except bulk insert?
By using query and not import by wizard.
Is there any other way to insert into table from csv/text file except bulk
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another way you can do it which I have used when importing CSV data into a SQL database is via linked servers, if you install the Microsoft Access Database Engine 2010 Redistributable onto your SQL server (make sure to use the correct x86/x64 version for your architecture):
Microsoft Access 2010 Database Engine Redistributable
Then you can define a linked server like this:
Once you have that, any CSV file that you put into the folder S:\csv_location\ ends up as a table named filename#csv inside the default catalogue for your linked server.
I have a feeling that use of this particular provider isn’t supported for this purpose by Microsoft, but we’ve found this to work brilliantly for data imports without having to resort to SSIS etc.