I'm working in a project for my university about security based on the design of a relational database, using SQL Server, and I'm currently working in stored procedures specifically.
After doing some research about them I have found that there is more than one way to obtain an output. There is the possibility of using output parameters, but also you can do it using a select statement (what will end with the stored procedure returning a record set if I'm not wrong)
So talking into account that I'm working in how to design a robust data base, what is the best choice to retrieve output? Are there some situations where one option is better than the other?
Thank you in advance for your answers :)