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
 SSIS and Import/Export (2005)
 From SharePoint to SQL Server

Author  Topic 

farzad
Starting Member

3 Posts

Posted - 2011-08-16 : 18:29:34
How can I automate importing Excel files in SharePoint to SQL Server 2005?
I would like to write a program to run as "scheduled task" by windows to perform this import periodically.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-08-17 : 13:47:51
You can not write directly to the SQL database without breaking your SP support agreement.

Instead, I'd recommend just dropping the files into the UNC path that points to the SP folder.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

farzad
Starting Member

3 Posts

Posted - 2011-08-17 : 14:09:16
OK, but how can I import these Excel files on UNC path to SQLServer?
Thanks
quote:
Originally posted by tkizer

You can not write directly to the SQL database without breaking your SP support agreement.

Instead, I'd recommend just dropping the files into the UNC path that points to the SP folder.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-08-17 : 14:11:46
You wouldn't import them, per se. You'd drop them off (copy) in the Sharepoint UNC path, and then Sharepoint would magically handle everything.



Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

farzad
Starting Member

3 Posts

Posted - 2011-08-17 : 14:34:59
I am a newbie in SQL Server. Could you please step by step tell me how to:
1. Set the UNC path
2. Copy the files from SP to UNC path
3. Export these files from UNC path to SQL Server db

I really appreciate your help in this matter.

quote:
Originally posted by tkizer

You wouldn't import them, per se. You'd drop them off (copy) in the Sharepoint UNC path, and then Sharepoint would magically handle everything.



Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-08-17 : 14:41:59
This has nothing to do with SQL Server as you can NOT import the files directly into SQL Server. You'll need to contact your Sharepoint administrator for help.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -