How can we edit sqlserver text fields data by using HeidiSql tool..?
I'm getting the following errors when I was trying to edit text field data with HeidiSql 9.1.
Error:-
/* large SQL query (105.2 KiB), snipped at 2,000 characters */
* SQL Error (402): The data types text and varchar are incompatible in the equal to operator. */
How to edit text fields
How can we edit sqlserver text fields data by using HeidiSql tool..?
I'm getting the following errors when I was trying to edit text field data with HeidiSql 9.1.
Error:-
/* large SQL query (105.2 KiB), snipped at 2,000 characters */
* SQL Error (402): The data types text and text are incompatible in the equal to operator. */
Thanks for your reply.
Here, the problem is text field value comparison in the where clause (where <textfield column name>=<old data>).It's incorrect. Right..?
I don't have primary keys in my table for some purpose.
Could you please give me a suggestions to update text fields data without errors (by providing where clause conditions by the user).
I appreciate your help. Thanks again!
Here, the problem is text field value comparison in the where clause (where <textfield column name>=<old data>).It's incorrect. Right..?
I don't have primary keys in my table for some purpose.
Could you please give me a suggestions to update text fields data without errors (by providing where clause conditions by the user).
I appreciate your help. Thanks again!
You will probably have noticed that HeidiSQL already supports updating without a primary key. That's the reason why it generates the error "data types text and text are incompatible in the equal to operator".
I guess this is more a server side problem, as HeidiSQL does its best to generate a valid WHERE clause. If that fails due to the above error message, you should create a primary key on that table. I don't know what HeidiSQL could do to prevent that.
I guess this is more a server side problem, as HeidiSQL does its best to generate a valid WHERE clause. If that fails due to the above error message, you should create a primary key on that table. I don't know what HeidiSQL could do to prevent that.
Yes. It's updating without primary key. But, if the table has text datatype column it's failing to update because of "data types text and text are incompatible in the equal to operator".
I feel,If the tool can give the provision to the user to provide where clause while updating that would be great. The user could decide whether provide the where clause or use the default where clause which is provided by the tool. It's a great tool.
I feel,If the tool can give the provision to the user to provide where clause while updating that would be great. The user could decide whether provide the where clause or use the default where clause which is provided by the tool. It's a great tool.
Please login to leave a reply, or register at first.