Solved

Synchronize  MS SQL linked table and a local table

Posted on 2009-07-15
3
435 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

740 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