|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataAdapter Query AccessHi people, i have a question about this:
I need to know how can i obtain the sql queries (Insert, Update, Delete) that are executed by DataAdapter.Update on a DataSet. I know that i can see that queries on SQLProfiler but i want to obtain that sentences on my code...It's possible??? I hope you can help me... Regards Johny Johny,
When your selects are not to complicated than the commandbuilder. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlcommandbuilderclasstopic.asp I hope this helps, Cor You can do this by querying the DataAdapter.UpdateCommand.CommandText
property. You can also get the: DataAdapter.SelectCommand.CommandText DataAdapter.DeleteCommand.CommandText DataAdapter.InsertCommand.CommandText Hope that helps. David Show quote "Johny" <Jo***@discussions.microsoft.com> wrote in message news:D423EFF4-C0C0-44E3-AB0A-7E11FD687E3C@microsoft.com... > Hi people, i have a question about this: > > I need to know how can i obtain the sql queries (Insert, Update, Delete) > that are executed by DataAdapter.Update on a DataSet. I know that i can see > that queries on SQLProfiler but i want to obtain that sentences on my > code...It's possible??? > > I hope you can help me... > > Regards > > Johny |
|||||||||||||||||||||||