| 9/12/2006 8:16:04 PM |
I have a table with a field of type varchar(8000). Unfortunately, I am not able to store more then approx 3900 characters. This is the error I get:
Disallowed implicit conversion from data type ntext to data type varchar, table xxx column yyy Use the CONVERT function to run this query.
I have a feeling it might have something to do with Unicode/Multibyte characters. Nevertheless, when I look at the values in SQL Server Enterprise Manager and also copy them to WinWord I do not see that it uses 16-bits/char (maybe it automatically handles this for display purposes). In any case, how can I store 8000 characters in the field?
I am using Visual Studio 2005, C# and SQL Server 2000.
Thanks
|
| 9/13/2006 6:24:36 AM |
Paul,
Thanks for the reply. I have created a small example that shows the problem I am having. How can I send it to you as this form does not allow me to add attachments? Considering your comments I am probably doing something wrong (I'm a newbie).
Regards |
| 3/18/2008 3:38:24 PM |
I ran into the same problem. I think this is related to the following issue: You may receive an error message when you try to populate a SQL Server 2000 table with a Data Generation plan in Visual Studio 2005 Team Edition for Database Professionals: "System.Data.SqlClient.SqlError: Disallowed implicit conversion from data type nte
Note: I find it ironic that the title of this KB article is truncated on Microsoft's site, probably for being too long. :)
Regards, Tim
|