P
Peter Rabbit
I am using an SQL command to Insert records in a Jet database. Performance
is abyssmal (compared to C++ / DAO). Is there a better way?
The core of the code is as follows:
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = sdb; // sdb is an OleDbConnection object
cmd.Connection.Open();
while (six != 0xffffffff)
{
string dbq = "INSERT INTO FDP (SIX, EPN) VALUES (" + six + ", " + epn +
")";
cmd.CommandText = dbq;
cmd.ExecuteNonQuery();
six = bin_in(fdp);
epn = bin_in(fdp);
}
Thanks
is abyssmal (compared to C++ / DAO). Is there a better way?
The core of the code is as follows:
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = sdb; // sdb is an OleDbConnection object
cmd.Connection.Open();
while (six != 0xffffffff)
{
string dbq = "INSERT INTO FDP (SIX, EPN) VALUES (" + six + ", " + epn +
")";
cmd.CommandText = dbq;
cmd.ExecuteNonQuery();
six = bin_in(fdp);
epn = bin_in(fdp);
}
Thanks