Article ID: 198520 - Last Review: June 1, 2005 - Revision: 5.1 BUG: You receive an "OLE DB Provider 'atlprov' reported an error" error message when you try to use an ATL wizard-generated OLE DB Provider in Visual C++This article was previously published under Q198520 On This PageSYMPTOMS SQL Server 7.0 and SQL Server 2000 provide a mechanism for
performing distributed queries against an OLE DB provider. You can use the new OpenQuery function or the 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: Server: Msg 7399, Level
16, State 1, Line 1 OLE DB Provider 'atlprov' reported an error. The provider
ran out of memory CAUSE This behavior occurs because of the following problems in
the Atldb.h header file:
RESOLUTION The Atldbfix.h file, provided below, is a revised copy of
the Atldb.h file that is included with Visual Studio Service Pack 5. Search the
Atldbfix.h header file for "Fix:" to find where the changes have been made.
Instead of including the Atldb.h header file in your project, replace it with the Atldbfix.h file, after which you will encounter the following error message: Server: Msg 7347, Level 16,
State 1, Line 1 OLE DB Provider 'Atlprov' returned an unexpected data length
for the fixed-length column '[].FileName'. The expected data length is 260,
while the returned data length is 12. In the ATL wizard-generated sample provider, change the following two lines in the provider column map from the following: STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONThe
following file is available for download from the Microsoft Download
Center: For Visual C++ 6.0, use the following file: Atldbfix.exe
(http://download.microsoft.com/download/vc60pro/patch/1/win98/en-us/atldbfix.exe)
Release Date: Jan-07-2002For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/
)
How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
Steps to reproduce the behavior
REFERENCES For more information and to download a Support WebCast,
visit the following Microsoft Web site: Creating, Using, and Debugging OLE DB Providers for SQL Server 7.0 Distributed Queries http://support.microsoft.com/servicedesks/webcasts/wc102699/WC102699.asp (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fservicedesks%2fwebcasts%2fwc102699%2fwc102699.asp) | Article Translations
|
Back to the top
