FIX: "Cannot resolve collation conflict for column 2 in SELECT statement" error message when you expand or drag a table (325681)
The information in this article applies to:
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft ADO.NET (included with the .NET Framework 1.1)
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
This article was previously published under Q325681 SYMPTOMS In Visual Studio .NET Server Explorer, a connection is
established to a Microsoft SQL Server database. When you expand a table to view
fields, or when you drag a table to the Form Designer, you may receive the
following error message: ADO error: Cannot resolve
collation conflict for column 2 in SELECT statement. CAUSE The Visual Database Tool does not work correctly when you
set the SQL Server database collation property to a collation setting that is
different from the server default collation. RESOLUTION To work around this problem, use one of the following
methods:
- Create a new database with the collation name as "(server
default)". Import data from the current database, and make sure that the
Copy objects and data between SQL Server databases option is
selected. Connect to this new database from Server Explorer.
- Do not use Server Explorer to drag the table to the Form
Designer so that ADO.NET generates the code for you. Instead, create the SqlDataAdapter object and its UpdateCommand, DeleteCommand, and InsertCommand properties programmatically in the code.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 9/15/2005 |
---|
Keywords: | kbvs2002sp1sweep kbbug kbpending KB325681 kbAudDeveloper |
---|
|