• Lucky9 (10/6/2013)


    i have a stored procedure where the customername parameter is a comma separated

    i am calling that parameter in the dynamic where clause the problem is am getting the error unclosed single quotation,reason am getting that error because

    values of customer names column are as follow

    Will o'smith

    Roa's

    so the customer name parameter is comma separated and used in the where clause

    Without the query, we'd only be guessing. Please post the query and the comma separated parameter.

    --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)