Query Parameter of a Stored Procedure
I would like to write a query that would return both the names and types of paramters for a given stored procedure. In another words if there was a stored procedure call "MyStoredProcedure" and it took two parameters, @P1 of type int, and @P2 of nvarchar(25), then the query SELECT ?????? WHERE ????? = 'MyStoredProcedure' would return @RETURN_VALUE int, @P1 int, @P2 nvarchar(25); or at least something close to that.
I would also like to do the same thing for a table; given a table name enumerate the fields and their types.
|