ACC2: ODBC Specification Error Attaching to SQL Server View

ID: Q131586


The information in this article applies to:


SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you attach to a view in a Microsoft SQL Server database created from a table that resides in a different Microsoft SQL Server database and contains a field with a user-defined data type, you receive the following error message:

ODBC Specification Conformance Error [-7731]. This error should be reported to the ODBC driver vendor.


RESOLUTION

To avoid this error message, use one of the following methods:


MORE INFORMATION

Steps to Reproduce Problem


  1. In the Microsoft SQL Server sample database PUBS, create a view in the MASTER database using the following syntax:
    
          create view test as
          select * from pubs..authors 


  2. Start Microsoft Access.


  3. Open the sample database NWIND.MDB.


  4. On the File menu, click Attach. Because the Authors table in the PUBS database contains a user-defined data type called ID, you receive the following error message:
    ODBC Specification Conformance Error [-7731]. This error should be reported to the ODBC driver vendor.



STATUS

Microsoft has confirmed this to be a problem in Microsoft Access version 2.0. This problem no longer occurs in Microsoft Access version 7.0.


REFERENCES

Microsoft SQL Server "Language Reference," version 4.2, pages 97-109


Keywords          : kberrmsg kbusage OdbcSqlms 
Version           : 2.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: April 28, 1999