excel - Importing multiple .xlsx files into SQL Server using SSMS (Basic, not Enterprise) -


as question states, i'm trying upload 2000 single-worksheet excel files single sql-server database. database has been set using 1 of excel files template , files have same layout. i'm hoping it's simple copying rest of data across files. there way of moving 2000 across @ once instead of having upload them individually using ssms import wizard.

info: location of excel files - c:\myserver\myuser\desktop\nominations

database add each excel table - dbo.mydatabase$

using ms sql server management studio.

can't add diagram of layout (too new stackoverflow), imagine 12 column db , you're there. it's simple db.

i don't believe have multiple file option within wizard unless upgrade enterprise, work won't allow until complete proof-of-concept test these files.

any appreciated. thanks, folks!

you don't need wizard

insert destinationtable select * openrowset(   'microsoft.ace.oledb.12.0',   'excel 12.0;database=c:\path\to\file.xlsx',   'select * [sheet1$]' ) 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -