• You didn't write how you run the procedure, but it looks like you don't pass it the output parameter. When you use the procedure do you pass to it 1 parameter or 2 parameters?

    Adi

    --------------------------------------------------------------
    To know how to ask questions and increase the chances of getting asnwers:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/