Link to home
Start Free TrialLog in
Avatar of ndidomenico
ndidomenico

asked on

Store Excel data in a SQL Server table and link Excel to this DB

I have data in a Excel spreadsheet that I would like to store in a table in SQL Server 2008 (or maybe Sql Express 2005) and then be able to access this data in SQL from Excel on some pc's.
How do I:
1) Create the appropriate table in SQL Server
2) Copy the data from Excel to this SQL Table
3) Be able to access this Sql table data from an Excel spreadsheet (on any pc).

Thanks.
Avatar of Peter Kiprop
Peter Kiprop
Flag of Kenya image

Hi ndidomenico,

1.You need to create a database in ms sql server.
2. In the excel format to the column headers appropriately i.e the way you need it to appear in the table and save
3. Go to SQL server management studio express and right click on the database already created.
4.select TASKS and then select IMPORT DATA after clicking
this one dialog box will appear,click NEXT
5.Choose microsoft Excel as DATA SOURCE,then BROWSE your saved excel file then click NEXT
6.Choose the DESTINATION (Your SQL server)
7.Select the SERVERNAME
8.There are two AUTHENTICATION, select the SQL SERVER AUTHENTICATION and give the USERNAME & PASSWORE
9.Select the DATABASE and then click next
10.select "COPY DATA FROM ONE OR MORE TABLES OR VIEWS" then click next
11.the Sheets in your excel file will be showed here
12.select the sheet which you want to insert and then click next
13.select the "EXECUTE IMMEDIATELY" check box and then click next
14.click finish
15.it takes some time to process and finallY, if there are no mistakes,it executes
successsfuly else it shows the error message
Avatar of ndidomenico
ndidomenico

ASKER

Thanks so much Pthepebble. Very detailed, super ! Now, how do I access this SQL table from an Excel spreadsheet ?
ASKER CERTIFIED SOLUTION
Avatar of Peter Kiprop
Peter Kiprop
Flag of Kenya image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial