I have a requirement to run a query against a database that will return either a zero or one
(Checking for existance of specific criteria).
The Tech specs I\'ve been given for r
Execute the Stored Procedure using the ExecuteScalar() method. You can then cast the result of this to a boolean.
e.g
SqlConnection con = new SqlConnection(connectionString);
SqlCommand com = new SqlCommand("Execute dbo.usp_MyStoredProc", con);
return (Boolean)com.ExecuteScalar();