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 2000 Forums
 Transact-SQL (2000)
 Bulk insert from excel

Author  Topic 

imughal
Posting Yak Master

192 Posts

Posted - 2004-09-22 : 06:49:23
hi,
i have excel fiel contain data in column format like this

Order ID Line ID Product ID Product Code Quantity Unit Price

i have to read the excel file and insert data to sqlserver from excel file. how i can do this. either use bulk insert or dts package. any help will be appreciated.

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-09-22 : 07:21:26
I always make reference to this thread for this kind of stuff.
My freind Wanderer has posted some code here that does just this.

http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=36383


Duane.
Go to Top of Page
   

- Advertisement -