简体   繁体   中英

How can i import Excel Data Into My Sql Server Table Only Using Stored Procedure

I am new to using stored procedures I have an excel file that has few columns and data. I want to be able to read and insert the rows in respective columns in the table, but only using Stored procedures. I am using sql server 2017

A way you can easily do this is to save the excel file in CSV format then using Bulk Insert in the Stored Procedure. Bulk Insert, I think, doesn't accept parameters as the file location so you might also need to write the bulk insert script as a dynamic-SQL.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM