0% found this document useful (0 votes)
174 views3 pages

SQL Server Import/Export Wizard Guide

The document provides steps for using the SQL Server Import and Export Wizard to copy data from an Excel file into a SQL Server database table. It describes selecting Excel as the data source, SQL Server as the destination, copying an entire table rather than writing a query, selecting the table to copy, optional steps to review column mappings and the generated CREATE TABLE statement, previewing the data, running the import operation, and reviewing the results. It also provides information on downloading and using the bcp utility and references for Power BI exporting data.

Uploaded by

Uk bhardwaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views3 pages

SQL Server Import/Export Wizard Guide

The document provides steps for using the SQL Server Import and Export Wizard to copy data from an Excel file into a SQL Server database table. It describes selecting Excel as the data source, SQL Server as the destination, copying an entire table rather than writing a query, selecting the table to copy, optional steps to review column mappings and the generated CREATE TABLE statement, previewing the data, running the import operation, and reviewing the results. It also provides information on downloading and using the bcp utility and references for Power BI exporting data.

Uploaded by

Uk bhardwaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1-SQL Server Import and Export Wizard

Prerequisite - Is the wizard installed on your computer?


Download SQL Server Data Tools (SSDT).

Step 1 - Start the wizard


You start the wizard from the Microsoft SQL Server 2016 group on the Windows Start menu.

Step 2 - View the Welcome page

The first page of the wizard is the Welcome page.

You probably don't want to see this page again, so go ahead and click Do not show this starting
page again.

Step 3 - Pick Excel as your data source

On the next page, Choose a Data Source, you pick Microsoft Excel as your data source. Then
you browse to pick the Excel file. Finally you specify the Excel version that you used to create
the file.

Step 4 - Pick SQL Server as your destination

On the next page, Choose a Destination, you pick Microsoft SQL Server as your destination by
picking one of the data providers in the list that connects to SQL Server. In this example, you
pick the .Net Framework Data Provider for SQL Server.

Step 5 - Copy a table instead of writing a query

On the next page, Specify Table Copy or Query, you specify that you want to copy the entire
table of source data. You don't want to write a query in the SQL language to select the data to
copy.

Step 6 - Pick the table to copy

On the next page, Select Source Tables and Views, you pick the table or tables that you want to
copy from the data source. Then you map each selected source table to a new or existing
destination table.

Optional step 7 - Review the column mappings

Before you leave the Select Source Tables and Views page, optionally click the Edit Mappings
button to open the Column Mappings dialog box
Optional step 8 - Review the CREATE TABLE statement

While the Column Mappings dialog box is open, optionally click the Edit SQL button to open
the Create Table SQL Statement dialog box. Here you see the CREATE TABLE statement
generated by the wizard to create the new destination table. Typically you don't have to change
the statement.

Optional step 9 - Preview the data to copy

After you click OK to close the Create Table SQL Statement dialog box, then click OK again
to close the Column Mappings dialog box, you're back on the Select Source Tables and Views
page. Optionally click the Preview button to see a sample of the data that the wizard is going to
copy.

Step 10 - Yes, you want to run the import-export operation

On the next page, Save and Run Package, you leave Run immediately enabled to copy the data
as soon as you click Finish on the next page. Or you can skip the next page by clicking Finish
on the Save and Run Package page.

Step 11 - Finish the wizard and run the import-export operation

If you clicked Next instead of Finish on the Save and Run Package page, then on the next
page, Complete the Wizard, you see a summary of what the wizard is going to do.

Step 12 - Review what the wizard did

On the final page, watch as the wizard finishes each task, then review the results. The
highlighted line indicates that the wizard copied your data successfully. You're finished!

2-bcp Utility
Download the latest version of bcp Utility

Download Microsoft Command Line Utilities 15 for SQL Server (x64)


Download Microsoft Command Line Utilities 15 for SQL Server (x86)

System Requirements

Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server
2008 R2, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2,
Windows Server 2016, Windows Server 2019, Windows Server 2022
Ref- https://docs.microsoft.com/en-us/sql/integration-services/import-export-
data/start-the-sql-server-import-and-export-wizard?redirectedfrom=MSDN&view=sql-
server-ver15

https://docs.microsoft.com/en-us/sql/tools/bcp-utility?redirectedfrom=MSDN&view=sql-
server-ver15

Power Bi-

https://www.enjoysharepoint.com/power-bi-export-data/

https://www.youtube.com/watch?v=DyhMK4CaQ5s

https://blog.crossjoin.co.uk/2018/02/05/creating-excel-data-dump-reports-from-power-bi/

You might also like