I am trying to return an int from my sql query. (Identity)
But for some reason the int value is not being set, so I am thinking maybe I made a mistake with assigning the int.
Can somone point out where my mistake is ?
int test = (Int32) Convert.ToInt32(sqlCommand.ExecuteScalar());