write to an SQL Rable with an Image datatype, from vb6 using ado

  • i am using vb6 to write to an sql 2008 table. The table contains the field Description with is an image datatype.

    my recordset is called rPurchaseOrder, so my code is something like this

    DIM S AS STRING

    S = "tHE QUICK BROWN FOX JUMPS OVER THE LAZY DOG"

    With rPurchaseOrder

    ![Description] = S

    !OtherField = ETC ETC ETC

    .updatebatch

    end with

    When i am trying to update the batch I am getting a erorr becasue S is a string and i am posting it into an Image field. is there a way of converting s to a binary value, as i think this is what I need to do.

  • Why would you want to store text as an image?

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • I dont, i think its mad, but I didn't write the original system, nor can I change it unfortunately.

Viewing 3 posts - 1 through 2 (of 2 total)

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