Solved

VB.net Get the SQL statement from a dataset

Posted on 2014-11-15
3
133 Views
Last Modified: 2014-11-16
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
0
Comment
Question by:murbro
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 40445630
You want the SQL Statement for a dataset already opened? The answer is no. What are you trying to acheive?
0
 

Author Comment

by:murbro
ID: 40445664
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
 

Author Closing Comment

by:murbro
ID: 40445755
Thanks Eric. That answers my question
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question