A Microsoft platform for building enterprise-level data integration and data transformations solutions.
Use SQL Server Management Studio and start the SQL Server Import and Export Wizard:
- In SSMS, connect to the SQL Server Database Engine.
- Expand Databases.
- Right-click the target database.
- Select Tasks > Import Data.
- In the wizard, choose Microsoft Excel as the data source.
- Enter the Excel file path or browse to the workbook.
- Select the correct Excel version.
- Set First row has column names if the sheet header row contains column names.
- Continue through the wizard to import the worksheet data into SQL Server.
Important details:
- The wizard can’t open a password-protected Excel file.
- If Excel does not appear in the data source list, the issue is often 32-bit vs 64-bit wizard/provider visibility. The Excel and Access providers are typically 32-bit and may not appear in the 64-bit wizard. Running the 32-bit wizard can resolve that.
- If importing multiple worksheets, the import typically has to be run once for each sheet.
- For direct Excel import, the documented methods apply to SQL Server on-premises only. For Azure SQL Database, export the Excel sheet to CSV or text first, then import that file.
Alternative methods:
- Save the Excel sheet as CSV or tab-delimited text, then import it with:
- Import Flat File Wizard
-
BULK INSERT -
bcp - Azure Data Factory
- If building repeatable ETL, create an SSIS package with Excel Source and SQL Server Destination.