G
Guest
Dear All,
Can anyone tell me what's going wrong with the following code. I'm fairly
new to C# programming and ready to tear my hair out.
m_Numbes is a DataTable object
DataRow drNewRow = m_Numbers.NewRow();
drNewRow["Key"] = 5;
m_Numbers.Rows.Add(drNewRow);
m_daDataAdapter.Update(m_Numbers);
The code fails on the Update method with an error relating to INSERT INTO.
I'm at my wits end. Any help really appreciated.
Thanks
Greg
Can anyone tell me what's going wrong with the following code. I'm fairly
new to C# programming and ready to tear my hair out.
m_Numbes is a DataTable object
DataRow drNewRow = m_Numbers.NewRow();
drNewRow["Key"] = 5;
m_Numbers.Rows.Add(drNewRow);
m_daDataAdapter.Update(m_Numbers);
The code fails on the Update method with an error relating to INSERT INTO.
I'm at my wits end. Any help really appreciated.
Thanks
Greg