SQL Server Video to Extract All Excel Worksheets into individual CSV files

By:   |   Comments (1)   |   Related: > PowerShell




Problem / Solution

We get Excel files with several worksheets and we want a way to automate the extraction of each worksheet, so it can be imported into SQL Server.  In this video tip, we look at how to use PowerShell to automate the extraction of each individual worksheet into separate CSV files for easy import into the database.

Key Learning Items
  • Opening Excel files using PowerShell
  • Looping through each worksheet and extracting the data into individual CSV files
Read Companion Tip

Click Here



sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



About the author
MSSQLTips author Tim Smith Tim Smith works as a DBA and developer and also teaches Automating ETL on Udemy.

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips



Comments For This Article




Tuesday, August 12, 2014 - 10:14:26 AM - Dan holmes Back To Top (34093)

Looks like the same technique as described here:

http://dnhlmssql.blogspot.com/2013/05/from-excel-to-insert-into-another.html

 















get free sql tips
agree to terms