In this post, we would see how to import data from Excel file to SQL Server using Import and Export Wizard, we would import data from four excel worksheets to SQL server. Here are the steps:
1) Right click the Target Database > Tasks > Import Data to open the SQL Server Import and export wizard
2) select the Data Source. In this case, Excel file. You would select the worksheets to fetch data from later, for now – select the excel file as shown below:
3) choose the Target Database:
4) Select the tables (in our case- worksheets) or specify a query. For the purpose of this demo, we would go with “copy data from one or more table or views” option:
5) Select the worksheets from the Excel file and also specify the tables in the target systems. If the tables in the target database are not already created, then would be created by this wizard:
6) You have the option of running this wizard immediately or you have the option of creating a SSIS package and then run it later. For the purpose of this post, we would select Run Immediately
7) Review the information and click Finish
8) After successful execution:
Conclusion:
In this blog post, we saw how to import data from Excel file to SQL server.
Related articles
- Guest Blog: How we use Fuzzy Lookup add-in in our company to solve data inconsistency problems: (parasdoshi.com)
0 thoughts on “How to import data from Excel file to SQL Server:”