Log in
::
Register
::
Not logged in
Search:
Home
Articles
Editorials
Forums
Scripts
Blogs
QotD
Books
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Re: Database Synchronization between SQL...
Re: Database Synchronization between SQL Server and Linked Server
Rate Topic
Display Mode
Topic Options
Author
Message
jlp3630
jlp3630
Posted Saturday, September 20, 2008 7:18 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, June 30, 2009 9:03 AM
Points: 142,
Visits: 430
What's the best approach to synchronize a linked server to a local SQL server database? DBAmp, which is OLE DB provider used for Salesforce, is utilized for setting up the linked server object. My initial thoughts were writing CREATE TABLE, UPDATE, INSERT, & DELETE statements. However, I'm not sure if that's the quickest approach in terms of man hours or implementation.
Post #573077
SQLBOT
SQLBOT
Posted Sunday, September 21, 2008 6:09 PM
SSC Veteran
Group: General Forum Members
Last Login: Thursday, July 02, 2009 2:43 PM
Points: 243,
Visits: 361
I think what you're essentially talking about is an ETL job.
You might consider a couple of options.
1. Use your OLE DB provider as a datasource in SSIS; use agent to schedule the SSIS job
2. if it's really really simple, you can write a stored procedure to keep the tables up-to-date; use agent to schedule the Stored proc.
Either way you're stuck with /how/ to programatically apply just the changed data (delta), and there are a number of good ETL/Data Warehousing tricks for capturing delta, if you're really lucky, there will be 'lastupdated' columns in your datasource you can leverage... otherwise it gets trickier, but is still very possible. Google will be very helpful and this article is a good introduction to the topic
http://en.wikipedia.org/wiki/Change_data_capture
I think there is also a SSC.com forum dedicated to ETL or Data Warehousing, that might be another good resource for you to leverage.
Good luck!
~Craig
Craig Outcalt
MCITP, MCDBA
Post #573201
Jacob Luebbers
Jacob Luebbers
Posted Monday, September 22, 2008 12:59 AM
SSC Veteran
Group: General Forum Members
Last Login: Thursday, July 02, 2009 11:06 PM
Points: 270,
Visits: 833
First hit on Google for "DBAmp oledb" brings up this link:
http://www.salesforce.com/web-common/assets/doccache/MultiForceDir/01530000000Ev3IAAS.pdf
Looks like exactly what you want AFAIK - check the section on SP_Refresh and SP_RefreshAll.
Regards,
Jacob
Post #573273
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
may
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2009 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use