Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 gaining sql query from SqlDataAdapter

Author  Topic 

mhm1984
Starting Member

1 Post

Posted - 2009-01-14 : 10:22:02
hi
i wrote this function to update database and it works but i need to saving sql query for using in another unixdata base how can i find real query?
public void UpdateChanges()
{
try
{
DataSet changes = dataSet.GetChanges();
DbCommandBuilder dbc;
if (changes != null)
{
connection.Open();
int numrow = dataAdapter.Update(changes);
connection.Close();
MessageBox.Show("Updated " + numrow + " rows , Success");
dataSet.AcceptChanges();
}
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
   

- Advertisement -