string sql = "SELECT * FROM TABLE"
command = new OdbcCommand(sql, (OdbcConnection)remoteconn);
command.CommandTimeout = 0;
OdbcDataAdapter adapter = new OdbcDataAdapter((OdbcCommand)command);
dtTemp = new DataTable();
adapter.Fill(dtTemp);
ASKER
ASKER
if (name == "TINLGENT" || name == "TININDIV" || name == "TINLGCOM" || name == "TINWSLEC")
{
OdbcDataAdapter adapter = new OdbcDataAdapter((OdbcCommand)command);
SqlDataAdapter adapterNew = new SqlDataAdapter(new SqlCommand("SELECT * FROM " + name + "_TEMP", localconn, localtran));
SqlCommandBuilder builder = new SqlCommandBuilder(adapterNew);
dtTemp = new DataTable();
adapter.Fill(dtTemp);
foreach (DataRow drTemp in dtTemp.Rows)
drTemp.SetAdded();
adapterNew.Update(dtTemp);
}
ASKER
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY
DbDataAdapter.Fill Method (Int32, Int32, DataTable[])
http://msdn.microsoft.com/en-us/library/0z5wy74x.aspx
I prefer not to pull all the records into memory, if I am working with a lot of data.