ACC1x: SQL Server Triggers and Key Values to and from MS Access

Last reviewed: May 20, 1997
Article ID: Q91179
The information in this article applies to:
  • Microsoft Access versions 1.0 and 1.1

SUMMARY

If a Microsoft Access procedure sends a record to a SQL Server to insert into a SQL Server table, and the unique key for the record is created by a trigger on that table, the Microsoft Access procedure will lose reference to the record.

MORE INFORMATION

When information is sent to a SQL Server table, Microsoft Access looks at the record and determines a unique key value using the information in that record. When the data is passed to a SQL Server backend to be inserted into a table and a trigger creates a unique key value for the record, Microsoft Access will lose reference to that record because the unique key stored by Microsoft Access is different than the unique key created by the trigger on SQL Server. Until it is queried on using the new unique key value, Microsoft Access views the record just sent to SQL Server as having been deleted.

REFERENCES

For more information on SQL Server, search for "SQL Server" using the Microsoft Access Help menu.


Additional query words: XPROD
Keywords : kbusage OdbcOthr
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.