Can you tell me why this
results in an error "Data type mismatch - no conversion possible"? [ExtensionData] is an ntext column.
This error pops up SQL Server Management Studio when I am editing a view; if I ignore it and run the view anyway, it pops up again.
It also happens if I use CONVERT instead of CAST. I've scoured the net and I keep seeing this construct is legal. The error occurs whether I use char, varchar, nvarchar, nchar
SQL Server (2008 R2)
Thanks for any help.
Jim
Code:
CAST(ExtensionData AS nvarchar(10)) AS Expr1
This error pops up SQL Server Management Studio when I am editing a view; if I ignore it and run the view anyway, it pops up again.
It also happens if I use CONVERT instead of CAST. I've scoured the net and I keep seeing this construct is legal. The error occurs whether I use char, varchar, nvarchar, nchar
SQL Server (2008 R2)
Thanks for any help.
Jim
Comment