• celticpiping (10/26/2015)


    hmm

    well, I must have highlighted the top line...

    because I re-ran, and deleted 1 row with:

    delete shipping_data

    where order_no='1000002'

    and running;

    delete shipping_data

    where order_no=1000002

    produced an error: "Conversion failed when converting the varchar value"

    which makes sense..it IS a char type after all...

    thanks fellers..

    NP. Thank you for figuring out what you did because it means that it's not an MS bug that you came across.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)