2

I have a 200GB table with a column of type image, which I'm planing to convert to a varbinary(MAX). After reading this post about converting NTEXT http://geekswithblogs.net/johnsPerfBlog/archive/2008/04/16/ntext-vs-nvarcharmax-in-sql-2005.aspx the writer suggest to do an

UPDATE testTable 
SET testText = testText

After the conversion. Can the same be applied to a conversion between image and varbinary?

1
  • 1
    Should be fine -- do a test Commented Feb 17, 2017 at 15:25

1 Answer 1

1

Just run this command

ALTER TABLE YourTable 
ALTER COLUMN YourImageColumn VARBINARY(MAX);

and that should take care of everything.

There's no extra "conversion" step needed at all.

But again: do this on a TEST instance first!

And before you do it on your live system, TAKE A BACKUP!

You've been warned! :-)

Sign up to request clarification or add additional context in comments.

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.