I\'m trying to execute a stored procedure and then use an if statement to check for null values and I\'m coming up short. I\'m a VB guy so please bear with me if I\'m making
The idiomatic way is to say:
if(rsData["usr.ursrdaystime"] != DBNull.Value) { strLevel = rsData["usr.ursrdaystime"].ToString(); }
This:
rsData = objCmd.ExecuteReader(); rsData.Read();
Makes it look like you're reading exactly one value. Use IDbCommand.ExecuteScalar instead.
IDbCommand.ExecuteScalar