I have for example this stored procedure
ALTER PROCEDURE dbo.PersonaDoc
@cDocumento varchar (20)
AS
SELECT Ruta_Line
FROM Persona
WHERE (documento= @cDocumento)
What difference would there be to consuming it in C # using ExecuteNonQuery, ExecuteScalar or ExecuteReader (depending on the case the values you want to return) if the stored procedure is
ALTER PROCEDURE dbo.PersonaDoc
@cDocumento varchar (20)
@resultado int OUTPUT
AS
SELECT SET@resultado = nombre
FROM Persona
WHERE (documento= @cDocumento)
What is not clear to me is the difference between consuming the data that the stored procedure brings directly or using an output value for it, I suppose that in the first case it would be advantageous to bring several values and with the OUTPUT one alone, but assuming that I only want a return value is the same?