• in the procedure itself, do you have something like RETURN @MyDateValue

    the return of a stored procedure only can return an integer, and it typically means success(0) or failure(non zero) , like an error number.

    maybe you want to capture the resuts of the procedure instead? have it SELECT @MyDateValue

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!