How many OUTPUT parameters can we declare for a stored procedure in SQL Server ?
views:
449answers:
4
+2
A:
Basically almost as many as you like ;-)
If you check this Technet article Maximum Capacity Specifications for SQL Server, the maximum number of parameters for a stored procedure is 2'100. I don't see any mention whether or not you couldn't have all 2100 being output parameters, if you really must......
marc_s
2010-02-23 10:29:29
+2
A:
According to MSDN, a stored procedure can have a maximum of 2,100 parameters. The limit applies across all parameters, regardless of their direction (input or output).
However, I would advice you to keep the number of parameters relatively low. If you're returning many pieces of data or a lot of data, consider using a result set instead.
Håvard S
2010-02-23 10:33:11