The information in this article applies to:
SYMPTOMSThe following error may occur when you perform a distributed query with the OpenQuery() function:
CAUSEThe error occurs if you have changed the compatibility level of a SQL Server 7.0 database to 6.5 version. RESOLUTIONRun sp_dbcmptlevel and set the compatibility level to 70. STATUSThis is by design. MORE INFORMATIONMicrosoft SQL Server version 7.0 provides the ability to perform queries against OLE DB providers. This is done by using the OpenQuery or OpenRowset Transact-SQL functions or by using a query with four-part names including a linked-server name. For example:
Steps to Reproduce the ErrorYou can run the following script in SQL Query Analyzer to see the error. You may want to change the path to a Microsoft Access Database (.mdb) file as appropriate on your computer that is running SQL Server.
Note that a distributed query with a four part name works in 6.x and 7.0 mode. A distributed query with OpenRowset fails with a different error when run in 6.x mode. For example:
Gives this error:
Additional query words: kbDSupport
Keywords : kbDatabase kbOLEDB kbSQLServ kbVC kbSQLServ700 |
Last Reviewed: January 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |