Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Trace My SQL Command (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>