Cry about...
MS-Windows Troubleshooting
ERROR [42000] [Microsoft] [SQL Native Client] [SQL Server] The data
types varchar(max) and text are incompatible in the equal to operator
Symptom:
When trying to update a record in a database table, the following exception
is thrown:
ERROR [42000] [Microsoft][SQL Native Client][SQL Server]The
data types varchar(max) and text are incompatible in the equal to
operator.
Possible Cause and Remedy
These notes have been tested within Microsoft Visual Studio
.NET 2008 running under Windows Vista Business against SQL Server 2008, and may apply to other
versions as well.
About the author: Brian Cryer
is a dedicated software developer and webmaster. For his day job he
develops websites and desktop applications as well as providing
IT services. He moonlights as a technical author and consultant.
|