You are on page 1of 8

Aqsa Gul (Computer science 3rd semester )

Presentation : DBMS

Topic : Import a file from Microsoft excel to SQL server

Teacher : Sir Abdullah

Import a File From Microsoft Excel to SQL Server


Here we are having few steps of importing a sheet from the source excel to the
destination SQL server.

Step 1:

Select a database where you want to open an excel file

Step 2:

Right click the database, click the task then click import data
Step 3:

After clicking the import data it will display a window open

Click the next


Step 4:

Select a data source, here we will select Microsoft excel

Step 6:

Excel file path, click the browse and select the file, here we will get the the file
path
Step 6:

Destination for file, select the SQL server from the list

Step 7:

Server name, if you are using local pc then there will be a local server

Window Authentication select “use window authentication”

Database select a database for file opening

Click the next


Step 8:

Specify table copy or query

Select copy data from one or more tables or views

As you click the next it will read that excel file and dispalys all the sheets row by
row

Step 9:

Change file name (not necessery), Dbo.any_name

Click the next


Step 10:

Save and run package

Select Run immediately , Click the next

Step 11:

Complete wizard
click the Finish, it will display

The execution was successful otherwise it will display an error if there is any,
Click the close

Step 12:

Click the table (in database you selected before)

It is the excel sheet converted into table

Step 13:

Open a new query and write select*from statement

.
After typing dbo. it will suggest you a table (converted from Microsoft excel to
SQL) , you simply select it

After statement execution it will display the table

Hence, The table imported successfully from Microsoft Excel to the SQL server.

Thank you

You might also like