BUG: CREATE TABLE Allows More Than 31 FOREIGN KEYsLast reviewed: January 21, 1998Article ID: Q137431 |
The information in this article applies to:
SYMPTOMSThe documented limit on FOREIGN KEYs for a single table is 31, yet the CREATE TABLE statement will allow a table to be created with more than 31 FOREIGN KEYs.
WORKAROUNDDo not create a table with more than 31 FOREIGN KEYs. If you need to enforce more than 31 primary-foreign key relationships, encode trigger logic on either or both the parent and child tables.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe documented limit on the number of FOREIGN KEYs that reference other tables is 31. If you create a table that has more the 31 such FOREIGN KEYs, attempts to insert to that table will result in an error 431:
Too many tables in query. |
Additional query words: sql6 reference 431 create table
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |