This is a discussion on how to determine programatically what output of a sp will be? within the SQL Server forums, part of the Microsoft SQL Server category; --> Using Sql Srv 7 I know I can use the system sp's sp_stored_procedures and sp_sproc_columns to determine all the ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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??? |
| ||||
| Am Wed, 5 Oct 2005 09:04:14 -0500 schrieb spiffo: > 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??? 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, helmut |