G
Guest
Can a boolean data type be null?
I'm passing a parameter to a stored procedure. It's type is defined by the
line:
....
SqlParameter paramOK = cmd.Parameters.Add("@IsOK",
SqlDbType.Bit);
....
and it's value is set using:
....
paramIsOK.Value = null;
....
but it doesn't like this (I'd like to have the null possibility if a user
has neither replied Yes nor No to a question on a form.)
many thanks
Pete
I'm passing a parameter to a stored procedure. It's type is defined by the
line:
....
SqlParameter paramOK = cmd.Parameters.Add("@IsOK",
SqlDbType.Bit);
....
and it's value is set using:
....
paramIsOK.Value = null;
....
but it doesn't like this (I'd like to have the null possibility if a user
has neither replied Yes nor No to a question on a form.)
many thanks
Pete