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 SQLServer table from a linked server

Author  Topic 

korssane
Posting Yak Master

104 Posts

Posted - 2009-02-19 : 21:47:20
Hi Guys,
I am new in SQL. Actually i am using Linked server to import Excel data into SQLServer 2005 data table. I successfully created the link and imported the data. The problem is : i do not know how to update the SQLServer table automatically (for example, every day at 6:00PM using my linked server )?

Please, any help will be greatly appreciated.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-19 : 22:18:33
Moving topic to the newbie forum.

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

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-02-19 : 22:51:23
just use like

UPDATE t
SET t.col1=s.col1,...
FROM table t
INNER JOIN Excelname...Sheetname s
On s.PK=t.PK

Pk is column by which table and excel are related


http://support.microsoft.com/kb/306397
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-02-19 : 22:52:07
Schedule with a job. I suppose you said in other thread you hav express edition. It doesn't have SQL Agent.
Go to Top of Page
   

- Advertisement -