Category: parameters

C# – Syntactic sugar for out parameters?

Let us say for a moment that C# allowed multiple return values in the most pure sense, where we would expect to see something like: string sender = message.GetSender(); string receiver = message.GetReceiver(); compacted to: string sender, receiver = message.GetParticipants(); In that case, I do not have to understand the return values of the method […]

Cannot retrieve output parameters from SQL Server stored procedure using PHP

I am executing a SQL Server stored procedure that is supposed to return an output parameter (ErrCode), as well as a resultset. I am calling the procedure from PHP using the following code, but so far have been unable to retrieve the output parameter: $stmt = mssql_init(“addFaculty”, $this->db); mssql_bind($stmt, “@FacultyID”, $FacultyID, SQLCHAR); …imagine other parameters […]