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 2008 Forums
 Transact-SQL (2008)
 Automate the import of excel data to SQL 2008

Author  Topic 

bi89405
Starting Member

35 Posts

Posted - 2011-08-23 : 10:15:09
Hello,

I would like to initiate a automatic import of my excel files to sql server 2008 R2. Is there any way to do that?

TIA,
Zack H.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-23 : 11:29:30
yep. there's. use OPENROWSET to export data from excel to sql server. Add a procedure to use OPENROWSET. Then add a job in sql server agent which executes this procedure and assign a schedule to it so that it runs automatically.

see

http://support.microsoft.com/kb/321686

alternate approach is to use ssis if you're familiar with it

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -