Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Addressed for Version 1.09 » View Incident Report |
Serious |
Reported By: Robin Joseph Reported On: 4/9/2008 For: Version 1.09 Build 1 |
DataTable dataTable = new DataTable(); dataTable.Columns.Add("Col1", typeof(System.Int32)); dataTable.Columns.Add("Col2", typeof(System.Int32)); DataRow row = dataTable.NewRow(); row["Col1"] = 11; row["Col2"] = 22; dataTable.Rows.Add(row); row = dataTable.NewRow(); row["Col1"] = 33; row["Col2"] = 44; dataTable.Rows.Add(row); EDBCommand DataCommand = new EDBCommand("INSERT INTO TestTable (Col1, Col2) VALUES(:Col1,:Col2)"); DataCommand.Parameters[0].DbType = DbType.Int32; DataCommand.Parameters[0].SourceColumn = "Col1"; DataCommand.Parameters[1].DbType = DbType.Int32; DataCommand.Parameters[1].SourceColumn = "Col2"; EDBDataAdapter DataAdapter = new EDBDataAdapter(); DataAdapter.InsertCommand = DataCommand; DataAdapter.InsertCommand.Connection = new EDBConnection(EDBConnStr); DataAdapter.InsertCommand.Connection.Open(); DataCommand.Prepare(); DataAdapter.Update(dataTable);
This web page was last updated on Tuesday, April 23, 2024 at 08:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |