• Hi Try the following......

    if exists(select * from sysobjects where name ='a')

    begin

    print 'passed'

    UPDATE a

    SET a.b = 1

    FROM a,c

    WHERE a.t = c.t

    end

    else

    print 'Failed'