Using columns from a procedure

  • Hi everyone,

    I'm wondering if there's a way that I can address different columns that a stored procedure returns. I know that I'm not explaining this properly, but in ASP code, I can execute a stored procedure and then use the columns in my code:

    myField = RS("ColumnName")

    So I want to execute that stored procedure which does not have output parameters, only returns a recordset. Then assign variables to the columns in the stored procedure.

    Something to the effect of:

    Declare @var1 varchar(20), @var2 varchar(20)

    exec MyStoredProc

    Set @var1 = (** one of the columns from that proc **)

    Set @var1 = (** another one of the columns from that proc **)

    Does this make a lick of sense??

    Thanks

  • This was removed by the editor as SPAM

Viewing 2 posts - 1 through 1 (of 1 total)

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