How to export a table with binary data (image)????

  • Hi, which is the best method to export a table with image(binary) datatype?

    I want to import this table into an isolated SQL Server (not connected to the network)

     

    Thnaks a lot!!!!

     

  • The only thing I can think of is to make a backup of the db, restore it (on the source machine), then remove all the tables EXCEPT the one you want moved. Make a backup of this 1-table db, burn it to cd or dvd, then restore it to the isolated sql server.

    This seems like a round-about method to move it, but would work. Anyone have better ideas?

    James

  • Thanks JB,  your answer is a valid method, but I can't believe that sql server does not have instruments in order to export one table with binary columns.

     

    Bye

  • I did a little more digging, and it looks like bcp can do what you're wanting.

    http://msdn2.microsoft.com/en-us/library/ms191232.aspx

    This should be a little easier than the method I outlined above.

    James

  • bcp with "-n" argument works fine for me.

    Thanks a lot!!

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply