D
Dariusz Tomon
Hi
I'm trying to retrieve data from database (MS Sql serv) from field of BIT
type.
I'm trying like this:
while (myReader.Read())
{
Int16 cos = (Int16)myReader.GetSqlInt16(1);
......
I build the solution and when I'm trying to open app. I get:
Specified cast is not valid.
How can I retrieve sql BIT type into C#. Maybe there is some general
advice/tutorial of types casting form DB to c# on the net?
Thanks for help in advance
Darek
I'm trying to retrieve data from database (MS Sql serv) from field of BIT
type.
I'm trying like this:
while (myReader.Read())
{
Int16 cos = (Int16)myReader.GetSqlInt16(1);
......
I build the solution and when I'm trying to open app. I get:
Specified cast is not valid.
How can I retrieve sql BIT type into C#. Maybe there is some general
advice/tutorial of types casting form DB to c# on the net?
Thanks for help in advance
Darek