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)
 Import excel file into table via T-SQL?

Author  Topic 

Wodzu
Yak Posting Veteran

58 Posts

Posted - 2008-06-06 : 09:47:45
Hi folks. I am having an excel file. I need to import this file to database and update some other tables with data contained in this file. I would like to automate this process as much as possible.
Now, I am just using SQL Server Import Wizard to create a table and then I am running an update query. Is there any (more automate) way to do this?

Thanks for your time.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-06 : 09:51:20

1 Use this http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=49926
2 Schedule it as job

Madhivanan

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

Wodzu
Yak Posting Veteran

58 Posts

Posted - 2008-06-06 : 10:50:38
Thank you :)
Go to Top of Page

eranhef
Starting Member

1 Post

Posted - 2008-07-11 : 03:39:10
Hi, you can do this using integration services (SSIS)
check this:
[url]http://ajaxme.blogspot.com/2008/05/loading-excel-file-to-ms-sql-table.html[/url]
Go to Top of Page
   

- Advertisement -