S
Sean Clayton
Hi there,
I'm fighting an issue with my department's new database that has my
head hurting.
Here's the general layout: we just installed a new medical records
database with a web-based frontend, and a SQL Server backend. I've
created an ODBC linked Access database to SQL Server backend, and I'm
trying to update the linked tables with an append query. What I get is
a key violation error for every record I'm trying to append.
The query is fairly simple, it reads like this:
INSERT INTO dbo_Patients_copy ( PtMRN, PtLastName, PtFirstName )
SELECT People_unique_MRN.MRN, People_unique_MRN.LastName,
People_unique_MRN.FirstName
FROM People_unique_MRN;
dbo_Patients_copy does contain a single primary key field called
PatientId, which is an autonumber, although I'm not trying to append
anything to that field.
As I understand from reading the group, appending data to the table is
supposed to result in appended data with an appropriately incremented
autonumber, but violations is what I get instead.
Can someone tell what I'm doing wrong?
I'm fighting an issue with my department's new database that has my
head hurting.
Here's the general layout: we just installed a new medical records
database with a web-based frontend, and a SQL Server backend. I've
created an ODBC linked Access database to SQL Server backend, and I'm
trying to update the linked tables with an append query. What I get is
a key violation error for every record I'm trying to append.
The query is fairly simple, it reads like this:
INSERT INTO dbo_Patients_copy ( PtMRN, PtLastName, PtFirstName )
SELECT People_unique_MRN.MRN, People_unique_MRN.LastName,
People_unique_MRN.FirstName
FROM People_unique_MRN;
dbo_Patients_copy does contain a single primary key field called
PatientId, which is an autonumber, although I'm not trying to append
anything to that field.
As I understand from reading the group, appending data to the table is
supposed to result in appended data with an appropriately incremented
autonumber, but violations is what I get instead.
Can someone tell what I'm doing wrong?