L
Lloyd Dupont
I used a SqlAdapter.
I have an InsertCommand whose CommandText goes like that
INSERT INTO table ( field1, field2, ...) VALUES ( @field1, @field2, ... )
I have an event handler for the RowUpdated event
which goes like that:
IDbCommand cmd = myConn.CreateCommand();
row[identity] = cmd.ExecutScalar();
and recently it began to bug and ExecuteScalar() to return alway
DBNull.Value
but there IS an idenity column in my table !
What could be going on ?
Any clues ?
I have an InsertCommand whose CommandText goes like that
INSERT INTO table ( field1, field2, ...) VALUES ( @field1, @field2, ... )
I have an event handler for the RowUpdated event
which goes like that:
IDbCommand cmd = myConn.CreateCommand();
row[identity] = cmd.ExecutScalar();
and recently it began to bug and ExecuteScalar() to return alway
DBNull.Value
but there IS an idenity column in my table !
What could be going on ?
Any clues ?