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
 SQL Server Administration (2005)
 Hw to import data from excel sheet to Sql server

Author  Topic 

hirani_prashant
Yak Posting Veteran

93 Posts

Posted - 2008-04-07 : 06:26:54
Hello All,

Can any one tell me how to import data from excel sheet to sql server 2005?

I have made table ready bt i dont know what i have to do for the above purpose.

Thanks
Prashant Hirani

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2008-04-07 : 07:06:44
Something like:

insert into table
select *
FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0',
'Data Source="C:\test\test.xls";Extended properties=Excel 8.0')...[sheet1$] a
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-04-07 : 09:08:21
Did you try with Import/Export Wizard?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-04-08 : 06:09:27
More info in http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -