Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2004, 01:29 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Synchronizing 2 tables on 2 different data sources

Hi,

I need to synchronize 2 different tables that exist on 2 different data sources using the most fast and optimized way possible using ADO.Net because this has to be stored as a scheduled job that will run regularly.

Here is the scenario:

I have a table named:
Books (BookID Integer-PK, BookName Char(40), LastUpdate DateTime )

This table exists on a MS Access database. Every so often I have to run a scheduled job that opens a connection to this MS Access database, reads any changes, additions or deleted rows that have occured in this table and that are different than the cloned table that exists on a SQL Server 2000 database. The LastUpdate timestamp column will be used for this comparison purpose. So that any new rows, deleted rows or changed rows have to be updated accordingly to the table that exists on SQL Server 2000.

The critical thing is that this has to be done using the most efficient and optimized way possible using ADO.Net.
Note: I am using VB.Net as a programming language and OLEDB as the data provider.

Thanks in advance

- Luai :)

 
Old January 6th, 2005, 11:32 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Unless you have a particular need to do this is .NET, this kind of task can usually be accomplished by creating a Data Transformation Services (DTS) package in MSSQL. It can support what you are looking for and be scheduled.
 
Old January 29th, 2005, 08:55 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

hi to all

i have the similar problem and the DTS Package is the obvious way.But i can't use it because the my second database is on the clients website under the control of respective ISP. I am formulating the solution through ASP.Net Web Services which will use XMl files to update the online database from the offline database. The question not actually lies whether you are using homogenous or hetrogeneous data sources. It is the way how the two data sources are to be synchronized.

For all those who refer to Wrox Profeesional VB.Net book, the chapter about web services in the book talks about the same problem.

Anubhav Kumar
 
Old February 24th, 2005, 01:37 AM
Authorized User
 
Join Date: Apr 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ranakdinesh
Default

I Alos Have the Same Problem In My Case My Website is Running on Sql Server. My Satff members located in almost all parts of Country need data in Access Format to Print Certain Reports. and we can't provide Dts Facility to Every one in some Cases there is no presistent net Connectivity.So I am using a long procedure with with Lots of Bugs to do So.

dinesh Rana





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: IListSource not contain any data sources. cJeffreywang ASP.NET 2.0 Basics 1 October 17th, 2007 03:04 PM
Joining data from multiple data sources ClaesR BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 August 28th, 2006 09:30 AM
Enumerate SQL data sources RFickling C# 0 May 22nd, 2005 10:49 AM
Query from multiple data sources billmedd BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 September 27th, 2004 10:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.