Solved

Synchronize  MS SQL linked table and a local table

Posted on 2009-07-15
3
417 Views
Last Modified: 2013-11-28
I have a several tables linked to a MS SQL Server. How do I synchronize a MS SQL linked table and a local table?  I want to do this so when I am not going the have an internet connect I will still be able to view the data. I will not be editing or entering data into the local table.
0
Comment
Question by:seanlhall
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
thenelson earned 500 total points
ID: 24864495
Take a look at replication. This is what it is designed for.

References on replication:
Replication white papers
http://Support.Microsoft.Com/kb/190766/en-us

q&a: Replication in microsoft access
http://Msdn.Microsoft.Com/archive/default.Asp?Url=/archive/en-us/dnaraccessdev/html/odc_replicationinaccess95.Asp

about choosing a tool for replication
http://Office.Microsoft.Com/en-us/assistance/hp052167661033.Aspx

a list of vba commands for replication:
Http://Office.Microsoft.Com/en-us/assistance/hp030698321033.Aspx

how to make a database replicable
http://Support.Microsoft.Com/kb/208774/en-us

troubleshooting common replication errors
http://Support.Microsoft.Com/kb/304026/en-us

replication faq
http://Support.Microsoft.Com/kb/282977/en-us

also, have a look at the "tsi synchronizer":
Http://Www.Trigeminal.Com/replication/synch.Asp?1033

Using the synchronize method:
Database.Synchronize pathname, exchange

the synchronize method syntax has the following parts.

Database an object variable that represents a database object that is a replica.

Pathname a string that contains the path to the target replica with which database will be synchronized. The .Mdb file name extension is optional.

Exchange optional. A constant indicating which direction to synchronize changes between the two databases, as specified in settings.  

Example:

Sub sendchangetoreplicax()

   dim dbs as database

   ' opens the replicable database
   set dbs = opendatabase("yourdatabase.Mdb")

   ' sends data or structural changes to the replica.
   Dbs.Synchronize "yourreplica.Mdb", _
      dbrepexportchanges

   dbs.Close

end sub
0
 

Author Closing Comment

by:seanlhall
ID: 31603919
This answer lead me to the make table query which what I was looking for. Thanks.
0
 
LVL 39

Expert Comment

by:thenelson
ID: 24872270
You're welcome.  Glad to help.

Happy Computing!

Nelson
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now