Learn more about SQL Server tools

mssqltips logo

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories


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

By:   |   Last Updated: 2014-08-06   |   Comments (1)   |   Related Tips: More > PowerShell

Enter your business email address to
get free SQL Server tips.

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

Last Updated: 2014-08-06

get scripts

next tip button

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

View all my tips
Related Resources

Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 

Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.


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

Looks like the same technique as described here:



Learn more about SQL Server tools