473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Automated Indirect Replication Issue

MGrowneyARSI
Hello I'm Atempting to set up Indirect Replication on a DB so that the end user can have a breifcase version and it will Sync with the Master DB when is is conected to the network again I can not get my hands on Replication Manager and so i have had to find away around this. I've seen several referances to TSI Synchronizer working with Microsofts Jet40repl.exe It's a real pain but i need it to work I've found this site to be the most help http://www.vsj.co.uk/articles/display.asp?id=560
But now that I have the jet exe and the TSI dll and have modifiyed the System Registry I'm geting a simple compile error when i try to exicute code to Sync the Master and Rep DBs the error states "user defined type not defined" On the first line of the following code.

Expand|Select|Wrap|Line Numbers
  1. Dim sync As Synchronizer
  2. Dim reps As Replicas
  3. Dim rep As Replica
  4. Set sync = New Synchronizer
  5. Set reps = sync.ReplicaSet
  6. sync.Running = True
  7. sync.SystemDB = _
  8.      "c:\windows\system32\system.mdw"
  9. sync.IndirectDropbox = "c:\dropbox"
  10. sync.IndirectDropboxPwd = "password"
  11. sync.DatabaseName = _
  12.     "C:\data\expenses.mdb"
  13. Set reps = sync.ReplicaSet
  14. For Each rep In reps
  15.     If rep.ReplicaID <> _
  16.         sync.ReplicaID Then
  17.         sync.SynchIndirect _
  18.             rep.SynchronizerID
  19.     End If
  20. Next rep
I must be missing a Referance but I'm not sure what this is poorly documented anywere I've looked on the web and I'm not sure if i missed a step of messed something up has anyone used this method before?
TIA
Oct 5 '07 #1
5 1836
Scott Price
1,384 Expert 1GB
I've not used this method myself, but I suspect you'll have to look carefully for TSI's dll in the references list.

dll's normally show as ... Type Library in the references list.

Regards,
Scott
Oct 6 '07 #2
nico5038
3,080 Expert 2GB
I've been using replication once in the past, but reverted the process as fast as possible.
There are too many problems with replication (like too "old" distributed versions that won't sync anymore, etc.) and thus I switched to my own coded import/expert of the data. Basically adding a LastUpdatedDate and LastUpdatedBy field to the "im/export" tables gives a solid foundation to manage it yourself.

For more Replication info you might download this FAQ that also holds the instruction to remove replication....:
http://support.microsoft.com/kb/q282977/


Nic;o)
Oct 6 '07 #3
Thanks Scott I had originally I had placed the Dll library in the same directory as the DB which will usually work however this time I had to paste it into the system32 directory and then browse to select it in references and It now works like a champ.
Nico I'm interested in how you deal with conflicts with your custom Replication If you don't mind sound like allot of work but who knows I may have to follow in your footsteps.
Oct 8 '07 #4
nico5038
3,080 Expert 2GB
The first step is to detect the tables that need to be "guarded" regarding updates.
Not all need to be guarded, like "fixed code-description" tables and tables only allowing "additions" like e.g. a "new orders" table. (In such a case you need just to make sure that you use the username or code as part of the unique orderkey to prevent collisions between the sales rep's)
When getting rows that are duplicate, then you can chose for two options:
1) Automatically update all non conflicting fields and leave the conflicting fields to a "master" user.
2) Just show the original record and the two or more duplicates and have the "master" user decide to apply one (or a combination) of updates.
As dupes won't happen generally often, the second (less coding intensive option) will often work.
Even with replication you'll need to do something with user intervention by a masteruser for these dupes.

By using the tables fields collection you'l be able to automate the process for multiple tables in a standard way.

Nic;o)
Oct 8 '07 #5
I see Seems to me that Option two is alot simpler I hope I can make Accesses Relication work If not well I've got some work to do thanks Nico, and Scott
Oct 8 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mahesh Hardikar | last post by:
Hello , Oracle 9.0.1.0.0 on HP-UX 11.11 I am testing Procedural Replication in Multimaster Replication Environment. (Asynchronous) Package PACK_1 with a PROC_1 does insert in TAB_1. The...
2
by: Ian Wyld | last post by:
Hello All We intend to replicate a database in order to have it as a near immediate standby in case of the failure of the main server. Is this the best solution for disaster recovery? We...
2
by: Christopher Burns | last post by:
Hi all, We are using VB.NET (VS2K3), sitting on VSS6. I have sorted out a configuration problem that was preventing us from building from scratch for new developers, but now I am having a very...
5
by: johnm | last post by:
Here is my situation. We run a very mission critical application that uses DB2 7.2 for the data repository. The database is hosed at a data center in Los Angeles, Ca. Our main office...
4
by: Andi Plotsky | last post by:
I need to synchronize 3 databases (1 Master and 2 replicas). I thought I'd give the Replica feature in Access2000 a whirl. I'm not sure I'm THAT impressed.....but maybe I'm just doing something...
9
by: David W. Fenton | last post by:
See: Updated version of the Microsoft Jet 4.0 Service Pack 8 replication files is available in the Download Center http://support.microsoft.com/?scid=kb;en-us;321076 This includes the Jet 4...
2
by: Query Builder | last post by:
I have a wired situation..! I set up transactional replication on one of my development server (SQL 2000 Dev Edition with sp4). It is running fine without any issues and all of a sudden, i...
5
by: Rahul B | last post by:
Hi, I am having the following issues while trying to restrict the current user from creating any objects. Below is the privileges for the user and response when i try to create a table in that...
2
by: Query Builder | last post by:
Hi, I have transactional replication set up on on of our MS SQL 2000 (SP4) Std Edition database server Because of an unfortunate scenario, I had to restore one of the publication databases. I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.