Error message when you try to use the OleDbConnection.Open method: "The .Net Data OLE DB Provider(System.Data.Oledb) does not support the MSDASQL Provider, Microsoft OLE DB Provider for ODBC Drivers." (310374)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft ADO.Net 2.0
This article was previously published under Q310374 This article refers to the following Microsoft .NET
Framework Class Library namespace:
SYMPTOMS The OleDbConnection class specifically prohibits you from using MSDASQL or data
source names (DSNs) when you connect to your data sources in ADO.NET. If you
try to use MSDASQL or DSNs, you receive the following error message:
An unhandled exception of type
'System.NotSupportedException' occurred in systemldata.dll. Additional
information: The .Net Data OLE DB Provider(System.Data.Oledb) does not support
the MSDASQL Provider, Microsoft OLE DB Provider for ODBC Drivers.
RESOLUTION To resolve this problem, use an OLE DB Provider rather than
an ODBC driver. Alternately, download, reference, and use the ODBC Managed
Provider. STATUS This behavior is by design. REFERENCES You can download the ODBC Provider from the following
Microsoft Web site: For additional
information ODBC .NET Data Provider, click the article number below to view the
article in the Microsoft Knowledge Base: 310985 HOW TO: Use the ODBC .NET Managed Provider in Visual Basic .NET and Connection Strings
Modification Type: | Minor | Last Reviewed: | 3/9/2006 |
---|
Keywords: | kbprb kbSystemData KB310374 kbAudDeveloper |
---|
|