The information in this article applies to:
SYMPTOMSAfter installing the Microsoft Data Access 2.0 SDK, the following errors may occur when trying to perform a SQL Server 7.0 distributed query:
-or-
-or-
CAUSE
Microsoft SQL Server installs a proxy/stub DLL for the OLE DB interfaces
called Msdaps.dll. This is used to marshal OLE DB interfaces between
processes/apartments. If the OLE DB Provider is invoked out of process or
is marked as apartment model, this proxy-stub DLL gets used. By default, if
the OLE DB provider is a known Microsoft provider, SQL Server 7.0 will
invoke the OLE DB provider in-process and the problem mentioned in this
article will not occur. If the provider is third party, it will be invoked
out-of-process.
RESOLUTIONTo get SQL Server 7.0 distributed queries to work when the OLE DB Provider is invoked out of process or is marked as apartment model, re-register the Msdaps.dll located in the "\Program Files\Common Files\System\ole db" folder using Regsvr32.exe. 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, sp_addlinkedserver 'mylinkedserver', 'product_name', 'myoledbprovider', 'data_source','location', 'provider_string', 'catalog' SELECT * FROM OPENQUERY(mylinkedserver, 'select * from table1')The SELECT statement will perform the SQL statement against the OLE DB Provider. REFERENCES
For a discussion on OLEDB provider configuration for Distributed Query, see
the following topic in SQL 7.0 Books Online: "Configuring OLE DB Providers
for Distributed Queries."
Additional query words:
Keywords : kbDatabase kbOLEDB kbGrpMDAC kbDSupport kbMDAC210SP2 kbGrpODBC |
Last Reviewed: November 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |