2

I have uploaded an image and stored into image field in database, that image is stored as 0xFFD8FFE. When I am trying to update the above with null as getting an exception called:

The datatypes image and varbinary(max) are incompatible in the equal to operator

I want to change the above value to null.

2 Answers 2

3

Just set it to null with an update statement:

UPDATE dbo.MyTable
  SET MyFieldName = NULL
  WHERE MyPrimaryKey = 12345
Sign up to request clarification or add additional context in comments.

Comments

1

update organisation set logo= null where logo like 0xFFD8FFE00010

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.