How can I get the result of a SQL query calculation?
Say, there are two cases”
CASE 1
RETURN "Process ok"
CASE 2
RETURN "Process failed"
This will be returned from the stored procedure.
Which is the best way to read this on .net, C# (Windows Forms)?
it’s up to you to use
DataReaderif you think you can get multiple records, or anExecuteScalarif you only get a single value, no records and no multiple columns, simply a string or an int…here how to call a stored procedure and get a reader then read its first column: