David Anderson
Registered User.
- Local time
- Today, 14:54
- Joined
- Nov 18, 2007
- Messages
- 84
I have an Access 2003 application that contains a table for recording payments received by post. The Primary Key of this Payments table is an autonumber field called PaymentID.
I also run an ASP.NET website that has an SQL Server Payments table, in this case for recording PayPal payments. It also has an autonumber PaymentID PK field (aka an 'identity' column in SQL Server terminology).
My plan is to merge the online payment data with the postal payment data on the Access version of the Payments table to enable various Access forms and reports to show all payments, regardless of source. For this to work, I need to end up with a single PaymentID column as PK.
However, my problem is that at present there is duplication of PaymentID numbers between Access and SQL Server as there is no mechanism in place to prevent this. In other words, there could be an online payment record with a PaymentID of 1234 that is totally unrelated to a postal payment with the same PaymentID. I cannot therefore merge the data without modifying the PKs in some way.
I would be very grateful for any suggestions on how to address this problem.
David
BTW, this thread is an offshoot of a previous thread at http://www.access-programmers.co.uk/forums/showthread.php?t=186837. In that previous thread I was asking for guidance on how to implement a specific solution to this problem. However, I now think I was premature in selecting that solution, which is why I have now posted my original problem.
I also run an ASP.NET website that has an SQL Server Payments table, in this case for recording PayPal payments. It also has an autonumber PaymentID PK field (aka an 'identity' column in SQL Server terminology).
My plan is to merge the online payment data with the postal payment data on the Access version of the Payments table to enable various Access forms and reports to show all payments, regardless of source. For this to work, I need to end up with a single PaymentID column as PK.
However, my problem is that at present there is duplication of PaymentID numbers between Access and SQL Server as there is no mechanism in place to prevent this. In other words, there could be an online payment record with a PaymentID of 1234 that is totally unrelated to a postal payment with the same PaymentID. I cannot therefore merge the data without modifying the PKs in some way.
I would be very grateful for any suggestions on how to address this problem.
David
BTW, this thread is an offshoot of a previous thread at http://www.access-programmers.co.uk/forums/showthread.php?t=186837. In that previous thread I was asking for guidance on how to implement a specific solution to this problem. However, I now think I was premature in selecting that solution, which is why I have now posted my original problem.