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
 how to import data from excel sheet to sqlserver?

Author  Topic 

samsun125
Yak Posting Veteran

63 Posts

Posted - 2008-11-11 : 09:29:42
Hi all,

My question is how to import data from microsoft excel sheet to sql server2005?

excel sheet :columns are sheet1:companyid,companyname,industrycategoryid,logo,rank(this is one table data i.e dbo.companies)

sheet2:industrycategoryid,industrycategoryname(this is 2nd table data i.e dbo.industrycategories)


Thanks & Regards
RamaDevi

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-11-11 : 10:00:26
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926
It also has examples how to import.

Yes it does.
I promise.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2008-11-11 : 11:38:12
If you are looking for code, then Peso's link is an excellent resource. However, if you are just doing a one time import, you can use the Tasks -> Import Data functionality built into Management Studio.
Go to Top of Page
   

- Advertisement -