BUG: The SqlConnection object presents misleading user interface for the ConnectionString property (316321)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft ADO.NET (included with the .NET Framework 1.1)
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
This article was previously published under Q316321 This article refers to the following Microsoft .NET
Framework Class Library namespaces:
- System.Data
- System.Data.OleDb
- System.Data.SqlClient
SYMPTOMS When you try to set the ConnectionString property for a SqlConnection object at design time, the OLEDB DataLinks dialog box permits you to select any OLE DB provider on your
system to generate a connection string for the SqlConnection object. When you try to run the application, however, you may
receive an error depending on which provider you have selected.
An unhandled exception of type
'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error. CAUSE The SqlConnection object is used only for connecting to SQL Server. RESOLUTION If you want to connect to other data providers, use the OledbConnection or OdbcConnection object. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
REFERENCES For more information about ADO.NET objects and syntax, see
the following topic in the Microsoft .NET Framework Software Development Kit
(SDK) documentation or MSDN Online: For more information about .NET Managed Providers, see the .NET
Developer's Center or the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 3/9/2006 |
---|
Keywords: | kbvs2002sp1sweep kbbug kbnofix kbSqlClient kbSystemData KB316321 |
---|
|