简体   繁体   中英

Import data from Excel to SQL Server automatically for every 15 min of time using MS Task Scheduler

How can I import data from Excel to SQL Server using MS Task Scheduler

  1. Create a stored procedure with Bulk Insert in SQL Server. In Bulk import query itself you can specify the file location and Table structure. Refer this link for Bulk insert
  2. Create a batch file and call the stored procedure using SQLCMD command. Refer this link for Example
  3. Task Schedule the batch file using windows task scheduler. Refer this link

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