VB.net Get the SQL statement from a dataset

Hi

Is it possible to get the SQL Statement text from a DataSet such as the one built at the following link?

http://msdn.microsoft.com/en-us/library/system.data.dataset_methods(v=vs.110).aspx
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
 
Éric MoreauSenior .Net ConsultantCommented:
You want the SQL Statement for a dataset already opened? The answer is no. What are you trying to acheive?
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi Eric
I have posted various questions on building a GUI for users to create table joins for SQL queries. I have built an app over the last three years that mimics the Access query creation process but am stuck on this point that no one seems to have an answer for. I hope that someone out there has at least tried to do/explain this. A simplistic interface that allows the user to drag and drop or select [Table].[Column] names and how they join to each other across a selection of tables in a query. After all if it has been done in the Access query designer, it must be possible. I had thought that using a DataSet, which allows you to programmatically add relationships might be the route
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks Eric. That answers my question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.