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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 load data from excel to sqlserver table

Author  Topic 

frank.svs
Constraint Violating Yak Guru

368 Posts

Posted - 2007-02-12 : 06:40:48
Hi pals,

I need some help. I have table in sqlserver 2005.i.e

create table sample
(
id int,
name varchar(20),
sal money,
doj datetime
)

and i also have an excel file with some data

data.xls
---------
101,raj,9999,18-10-1981
102,ram,8888,20-03-1980
103,ravi,7777,30-01-1975


Now i need to upload this data into "sample" table.
The version i am using is SQLSERVER 2005.

Can anyone suggest the steps involved in it.
Thanks in advance,
franky

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-02-12 : 06:47:49
This topic has some information about getting data from Excel
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -