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
 Update SQL from excel

Author  Topic 

gavakie
Posting Yak Master

221 Posts

Posted - 2011-01-12 : 16:38:42
If I have an excel file that I keep updated with information, is there a way to have that update sql as well?

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2011-01-13 : 00:00:00
one way of doing that is through bcp command and set it as a sql agent job.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-01-13 : 10:49:45
or even write a script using linked server created to this excel if its something you want to do frequently just like a table and then put it in a job with a schedule

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

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-14 : 04:22:53
You can also use OPENROWSET for this
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

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

- Advertisement -