Article ID: 243464 - Last Review: January 26, 2005 - Revision: 2.2 ACC2000: CommandTimeOut Expired Error When You Try to Make a Design Change to an Access ProjectThis article was previously published under Q243464 Advanced: Requires expert coding, interoperability, and multiuser
skills. This article applies only to a Microsoft Access project (.adp). On This PageSYMPTOMS In an Access project, when you try to make a design change
to a very large table (in most cases in excess of 1 million records), you may
receive the following error message: Errors were
encountered during the save process. Some of the database objects on your
diagram were not saved. '<table name> Table Unable to modify table. ADO Error. Timeout Expired. CAUSE You encountered a built-in time-out before the command
could be completed. If the command from the Access project takes over thirty
seconds (the default value) for the server to complete, a time-out error
occurs. This can happen, for example, when you perform DDL (Data Definition
Language) operations on tables that contain large amounts of data. This can
happen when you perform such design changes as adding a primary key or index to
a table or when you change a field's data type or attributes. You cannot modify
this time-out property within the Access user interface. RESOLUTION Create a Visual Basic for Applications procedure in the
Access project that runs the ADO Command object. The ADO Command object can programmatically make changes to the design of a large
table without error if the .CommandTimeOut property is set either to a large enough positive value or to
zero (0), which means that is should never time out. In the following example, the field BigID is added and is also set as the primary key in the table tblLarge: MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCESFor
additional information on a similar issue with Office Web Components, click the
article number below to view the article in the Microsoft Knowledge Base: 276270
(http://support.microsoft.com/kb/276270/EN-US/
)
DataSourceControl ConnectionTimeOut Property is Ignored
| Article Translations
|
Back to the top
