all groups > sql server (alternate) > october 2005 >
You're in the

sql server (alternate)

group:

how to determine programatically what output of a sp will be?


Re: how to determine programatically what output of a sp will be? helmut woess
10/5/2005 12:00:00 AM
sql server (alternate):
Am Wed, 5 Oct 2005 09:04:14 -0500 schrieb spiffo:

[quoted text, click to view]

I never put time in finding an answer for this question but my first
thought is, that it cannot be possible, because i can write a procedure
like this:

create stored procedure myRandom as
if datepart(s,getdate()) % 2 = 1 select 'field_1', 1
else select 123, 'last'

So what is the struct of the resultset? It changes every second!

bye,
how to determine programatically what output of a sp will be? spiffo
10/5/2005 9:04:14 AM
Using Sql Srv 7

I know I can use the system sp's sp_stored_procedures and sp_sproc_columns
to determine all the sps in a db, and what input parms there are for a
particular sp... but... if the sp returns a result set, is there a way to
find out the stru of that in a similar manner???

AddThis Social Bookmark Button