Solved

Synchronize  MS SQL linked table and a local table

Posted on 2009-07-15
3
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

752 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