In C#, using SqlDataReader, is there a way to read a boolean value from the DB?
while (reader.Read()) { destPath = reader[\"destination_path\"].ToString(
If you are using CASE in SELECT and want to use GetBoolean then use CAST to change the column to bit before reading.
For eg:
SELECT CAST((CASE WHEN [Condition] THEN 1 ELSE 0 END) as bit) FROM Table_Name
then you can use
reader.GetBoolean(0)