Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 export data from excel to sql table

Author  Topic 

vojinb
Starting Member

9 Posts

Posted - 2012-03-28 : 03:08:33
Hi,
my users have some excel which they are using for some calculations. Based on this excel I have create table matching those data structure in sql 2005 server. The point is that from one excel sheet I would like to export (insert) data to sql table.
How to do this, I'm surveying net but not so lucky :)

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-03-28 : 06:56:59
There are a few different ways to do this - for example, see this page: http://support.microsoft.com/kb/321686

The simplest perhaps is to use the Import Export Wizard, which you can launch by right clicking on the database name in the object explorer in SSMS and selecting Tasks -> Import Data.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-28 : 11:45:10
if you dont want to automate it, you can even write excel formulas to generate the insert code using excel data onto a new cell. copy and paste to new query window in ssms and execute it

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -