Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

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,T
eacherID)


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??


Report this thread to moderator Post Follow-up to this message
Old Post
johnrou@ci.green-bay.wi.us
03-28-06 04:29 PM


Re: Updating Linked Records Across DB's
(johnrou@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,T
eacherID)
>
>
> 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, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
03-29-06 01:26 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 07:50 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006