Hi,
I would like to Trace My Update SQL before sending it to the database, for this purpose I wrote like this. But it gives null value. How Can I achieve this. Please help me.
C# Code
private void updateBtn_Click(object sender, System.EventArgs e)
{
DataTable changes = data.GetChanges();
da.Update( changes );
MessageBox.Show(da.UpdateCommand.CommandText);
data.AcceptChanges();
}
Thanks in Advance
Thahir
I would like to Trace My Update SQL before sending it to the database, for this purpose I wrote like this. But it gives null value. How Can I achieve this. Please help me.
C# Code
private void updateBtn_Click(object sender, System.EventArgs e)
{
DataTable changes = data.GetChanges();
da.Update( changes );
MessageBox.Show(da.UpdateCommand.CommandText);
data.AcceptChanges();
}
Thanks in Advance
Thahir