The information in this article applies to:
SYMPTOMSSQL Server version 7.0 provides a mechanism for performing distributed queries against an OLE DB provider. This can be done by using the new OpenQuery or OpenRowset function. For example, the following SQL statement performs a query against an OLE DB provider called MyProv by using the command "Select * from table1":
If an ATL wizard-generated OLE DB Provider is queried by using the following
command, an error occurs:
The error message is:
CAUSEThere are a couple of fixes that must be made to the Atldb.h header file. The fundamental problem exists in two areas:
RESOLUTION
Atldbfix.h, provided below, is a revised copy of the Atldb.h file. Search
the new header file for "Fix:" to find where the changes have been made.
This error is caused by a bug in the ATL wizard-generated code, which returns a fixed-length string when it should be returning a variable length string of type DBTYPE_STR. In the ATL wizard-generated sample provider, change the following two lines in the provider column map from the following
to the following:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: Atldbfix.exeRelease Date: Nov-19-1999 For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. Steps to Reproduce Behavior
REFERENCESFor additional information, see the Support WebCast at the following location: http://support.microsoft.com/servicedesks/webcasts/wc102699/WC102699.asp Additional query words:
Keywords : kbfile kbpatch kbDatabase kbOLEDB kbSQL kbVC600bug kbATL300bug kbConsumer kbDSupport kbGrpOLEDB |
Last Reviewed: January 28, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |