how to delete image column in sql server 2008

  • HI all,

    delete from photoTable where photo in (SELECT

    p.Photo

    FROM Master_table SOD

    INNER JOIN phototable P

    ON SOD.x = P.vex

    WHERE SOD.uploaddate between '2011-10-01 00:00:00.000' and '2011-10-01 00:00:00.000')

    i got this error

    The data types image and image are incompatible in the equal to operator

    kindly suggest what to do ..

  • This may be what you are attempting to accomplish.

    delete from dbo.phototable

    from

    dbo.Master_table sod

    inner join dbo.phototable p

    on (sod.x = p.vex)

    where

    sod.uploaddate = '20111001';

    The error you are getting is because you can't compare images.

  • thnks i just want to know is image datatype can we used in any compare condition or not.

    so we can not have compare condition in image datatype column

  • Ivan Mohapatra (1/2/2012)


    thnks i just want to know is image datatype can we used in any compare condition or not.

    so we can not have compare condition in image datatype column

    I think I answered that in my original post as well.

  • yes u have .thks for ur suggestion.

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

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