Hello,
I get the follwing exception when I'm trying to read data from
SqlDataReader object using GetString(0)
method:System.I nvalidCastExcep tion: Specified cast is not valid. at
System.Data.Sql Client.SqlDataR eader.GetSqlStr ing(Int32 i)!!
If I replace 0 with other index (e.g 1) it's working !!! Why ?
I get the follwing exception when I'm trying to read data from
SqlDataReader object using GetString(0)
method:System.I nvalidCastExcep tion: Specified cast is not valid. at
System.Data.Sql Client.SqlDataR eader.GetSqlStr ing(Int32 i)!!
If I replace 0 with other index (e.g 1) it's working !!! Why ?
Comment