How to insert binary data into sql server using SSMS

Viewed 29041

Is there a way to insert binary data into sql server directly from SQL Server management studio?

3 Answers

Try this:

INSERT INTO Table (field1) VALUES (0xABCDEF)

Where 0xABCDEF is your binary data represented as an hexadecimal sequence.

I found no way to upload/download binary file from SSMS GUI without script.

So I switch to MySQL with Workbench. From their table editor, for a BLOB column, in the context menu, there are Load Value From File... and Save Value To File... options.

Related