473,395 Members | 1,846 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,395 software developers and data experts.

Updating Linked Records Across DB's

Here's a problem that I can't find anyone else has run into. I'm using
Access and SQL Server, but the theory would be the same for any db.

I have a large number of tables that contain linked records
(intersection tables mostly). In the interest of space, I'll
illustrate an example:
tblStudents (ID, Name)
tblTeachers (ID, Name)
tblClasses (ID, Name)
tblEnroll (StudentID,ClassID,TeacherID)
I have about 10 people who each use a separate
copy of this database (in access). I want them (at the end of each
day) to be able
to update all the records that they entered that day into a database
that I have setup on a server (SQL Server 2005). Both databases have
the exact same structure.
Caveat 1: All of the classes, students, and teachers are not the same
on each database, but the server database should contain all of them.
Caveat 2: There is no way for the clients to automatically insert into
the server, they are offsite and out of range.
Herein lies the problem: when a record is inserted into the server from

a client, all of the links are lost since the ID will be different on
the server that it was on the client.
I don't think a simple update / insert query will work, and most db's
and languages don't play nice with recordset appends.

What are your thoughts??

Mar 28 '06 #1
1 2340
(jo*****@ci.green-bay.wi.us) writes:
Here's a problem that I can't find anyone else has run into. I'm using
Access and SQL Server, but the theory would be the same for any db.

I have a large number of tables that contain linked records
(intersection tables mostly). In the interest of space, I'll
illustrate an example:
tblStudents (ID, Name)
tblTeachers (ID, Name)
tblClasses (ID, Name)
tblEnroll (StudentID,ClassID,TeacherID)
I have about 10 people who each use a separate
copy of this database (in access). I want them (at the end of each
day) to be able
to update all the records that they entered that day into a database
that I have setup on a server (SQL Server 2005). Both databases have
the exact same structure.


Sounds like you investigate replication. This is not my area, so I
can't give any details, even less any that includes Access. You might
want to ask in microsoft.public.sqlserver.replication for more details.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Mar 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: deko | last post by:
How to run action query against linked table? I have an Access 2003 mdb with an Excel 2003 Workbook as a linked table. When I attempt to run an action query against the linked table I get this...
1
by: infopimp | last post by:
hi There, New to ASP, I'm trying to display records from an access qry which takes data from several tables two of which are linked. The db which is the source of my qry is on my web server...
4
by: glenhong | last post by:
Hi I need some help here. I am running Access 2003. I have an Access DB linked (Front-end) to another Access DB (Back-end). I have a Form which has a third party grid on it. The grid is...
2
by: Kenny | last post by:
Hello all, I've made a dataset by using the xsd tool in C#. In the xsd schema, there are a few tables, each has its own primary key. And, I've made relation between them. After all things are...
4
by: Darrel | last post by:
I'm creating a table that contains multiple records pulled out of the database. I'm building the table myself and passing it to the page since the table needs to be fairly customized (ie, a...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
2
by: Alexey.Murin | last post by:
The application we are developing uses MS Access 2003 database (with help of ADO). We have noticed that during massive records updating the size of the mdb file increases dramatically (from 3-4 to...
5
by: Neil | last post by:
I'm running Access 2000 with a SQL 7 back end, using ODBC linked tables in an MDB file. The db is used by about 30 users on a LAN, and an additional 10 or so on a WAN. Recently, one of the WAN...
7
by: Roger | last post by:
This is the vba code Set db = CurrentDb On error goto fErr …. loop strSql = "UPDATE tblInvAnalysisWhse" & _ " SET ltDeviation = " & Sqr(dblError / intPeriods) & _ " WHERE item = '" &...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.