Stupid Newbie Question about SQL Query Anylizer

  • How do you get output to the message window?

    I run this:

    execute TrendPeakTotal '11', '2000-01-01', '2005-06-13'

    which invokes a stored procedure which returns an output variable so how do I see this for testing purposes?

    Can I use a Print statment of some sort?

  • Declare @Output as datetime

    set @Output = '2005-06-13'

    exec TrendPeakTotal '11', '2000-01-01', @Output output

    Select @Output

  • SELECT @Output will return a recordset

    You want to do everything that Remi said to do but instead:

    Print @Output



    A.J.
    DBA with an attitude

  • Question about >>>> SQL Query Anylizer

    nothing about a command object that would make me think it's about the apllication call of the parameter.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply