• ChrisM@Work (5/8/2013)


    The last SELECT in that script is

    SELECT VoucherNumber = @VoucherNumber, retval = @retval

    What values are returned?

    VoucherNumberretval

    0VB

    _______________________________________________________________
    To get quick answer follow this link:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/