C# Programming
04-16-2009, 04:20 PM
A am using access mdb database and using obleDB class.
when i run insert query on this table it runs successfully but record does not appear into data table.
i am using ..
objConnection1.Open();
objCommand = new OleDbCommand(Sqlstr, objConnection1);
Data = objCommand.ExecuteNonQuery();
// it gives data = 1
my connection is ok because i am getting value using this connection when i use Executescalar() on this command object
why it is.....
when i run insert query on this table it runs successfully but record does not appear into data table.
i am using ..
objConnection1.Open();
objCommand = new OleDbCommand(Sqlstr, objConnection1);
Data = objCommand.ExecuteNonQuery();
// it gives data = 1
my connection is ok because i am getting value using this connection when i use Executescalar() on this command object
why it is.....