I do the following:
...WHERE
fieldname COLLATE DATABASE_DEFAULT = otherfieldname COLLATE DATABASE_DEFAULT
Works every time. 🙂
More Related Contents:
- Get first day of week in SQL Server
- SELECT DISTINCT on one column
- Confused about UPDLOCK, HOLDLOCK
- Retrieve column definition for stored procedure result set
- SQL Server split CSV into multiple rows
- Using varchar(MAX) vs TEXT on SQL Server
- Change Notification with Sql Server 2008
- How do you create a yes/no boolean field in SQL server?
- Connecting to MS SQL Server with Windows Authentication using Python?
- Using COALESCE function to make values separated with commas
- TSQL Email Validation (without regex)
- How to find the port for MS SQL Server 2008?
- How do I create a multiple-table check constraint?
- How to convert number of minutes to hh:mm format in TSQL?
- Stored Procedure and Permissions – Is EXECUTE enough?
- What happens if you don’t commit a transaction to a database (say, SQL Server)?
- Dynamically assign filename to excel connection string
- SQL Server Group by Count of DateTime Per Hour?
- Temporarily disable all foreign key constraints
- How to import a DBF file in SQL Server
- SQL Server Dependencies
- SQL Server: Filter output of sp_who2
- How can I insert binary file data into a binary SQL field using a simple insert statement?
- Why do I get the error “Xml data type is not supported in distributed queries” when querying a linked server for non-xml data?
- Cannot find either column “dbo” or the user-defined function or aggregate “dbo.Splitfn”, or the name is ambiguous
- Date range overlapping check constraint
- What are the differences between Merge Join and Lookup transformations in SSIS?
- Table Valued Function Killing My Query Performance
- Pivot multiple columns based on one column in SQL Server
- How to do Sql Server CE table update from another table