ACC2: "Couldn't Find Object '<Name>'" with SQL Server Table

Last reviewed: May 20, 1997
Article ID: Q124239
The information in this article applies to:
  • Microsoft Access versions 2.0

SYMPTOMS

Advanced: Requires expert coding, interoperability, and multiuser skills.

When you try to link (attach) a SQL Server table, you may receive the following error message:

   Couldn't find object '<tablename>'

CAUSE

This problem occurs only if you have installed the Microsoft Access version 2.0 Service Pack. This problem is caused by the Microsoft SQL Server ODBC driver, but occurs only if you are using the Microsoft Jet database engine version 2.5, which is installed with the Service Pack. The problem with the SQL Server driver causes the Microsoft Jet database engine version 2.5 to be unable to link (attach) any table with a name with the following pattern:

   (number of non-underscore characters in table name) + ((number of
   underscores in table name) x 3) >= 33

Therefore, you can link a table with the name

   a_bceghi_jklopq_stuv_x24

but you cannot link a table with the name:

   a_bcdeghi_jklopq_stuv_x25

RESOLUTION

To work around this problem, rename the table so that it does not have a name matching the pattern described in the "Cause" section. Or, create a SQL Server view based on the table and then link the view. For example, you could use the following sample SQL statement to create a view:

   create view AbcDefGhiJklMnoPqr
   as
   select * from abc_def_ghi_jkl_mno_pqr;

You could then link the view instead of linking the table. In order to update the view, you would need to create an index specification on the view, as in the following example:

   create unique index Index1 on <owner>_AbcDefGhiJklMnoPqr (field1)

For more information about this type of index, please see the Microsoft Access "User's Guide," version 2.0, Chapter 9, "Importing, Exporting, and Attaching," page 169.

STATUS

This problem no longer occurs with the ODBC SQL Server driver that ships with Microsoft Access 7.0 or 97 and SQL Server 6.x.

REFERENCES

For more information about the Microsoft Access version 2.0 Service Pack, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q122927
   TITLE     : WX1124: Microsoft Access Version 2.0 Service Pack

For more information about the latest ODBC drivers available, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q147192
   TITLE     : Which ODBC Driver Do I Use and Where Do I Get It?


Additional query words: jet25 jet 2.5
Keywords : kberrmsg kbusage OdbcSqlms
Version : 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : kbworkaround


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.