473,388 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

C# Sql Query Designer

Okay, how I get myself into these situations, I don't know, but I have to
design a component to plug into a C# Windows Forms application that allows
the user to design a sql query. I'm thinking of something like the view
designer in Enterprise Manager.

Does anyone have any idea if there are any third party components that I can
use, or have any suggestions on implementation. I've taken a cursory look for
available components but haven't found any. I'm to worried about interface,
or even building the query, it's going to be the parsing of the query that
will be a nightmare, any ideas around that would be helpful to.

And if anyone says why don't you have the user just use Enterprise Manager,
I'm going to crap myself.
Nov 17 '05 #1
1 3587
mdb
"=?Utf-8?B?Sm9zaHVhIEJlbGRlbg==?="
<Jo**********@discussions.microsoft.com> wrote in
news:05**********************************@microsof t.com:
And if anyone says why don't you have the user just use Enterprise
Manager, I'm going to crap myself.


Well this is just a thought, but it might make you half-crap. Visual
Studio integrates the same controls that Enterprise Manager uses to design
queries and such, which means that it is most likely COM objects that
actually do the work. You could use the same COM objects, but it probably
relies on Enterprise Manager being installed. Not only that, but it
probably would be modifying the database queries instead of just producing
a result that your system can use - probably not what you want.

As a real answer to your question, it shouldn't be that difficult (in
theory anyway - probably more so in practice) to use SQLDMO to read the
database table definitions, and then allow the user to link fields together
from different tables, specify which fields he wants to retrieve, and then
produce a SQL Query from that. If you are decent with SQL commands then
building the query is probably the easy part... the user interface would
probably be the most difficult part to implement.

--
-mdb
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: dp | last post by:
After looking and looking, it appears that Access ADPs graphic query designer won't display: update customer set = . from customer, where customer. = .; It comes up with the "Query...
3
by: pw | last post by:
Hi, I am having a mental block trying to figure out how to code this. Two tables: "tblQuestions" (fields = quesnum, questype, question) "tblAnswers" (fields = clientnum, quesnum, questype,...
1
by: James | last post by:
Access 2003, trying to count the number of records that meet a criteria. According to Help: "In the Database window, click Queries under Objects, and then click New on the database window...
18
by: Wim | last post by:
Hi, I would like to make and put a query in my database by VB.NET code. Is this possible? Thanks for your help, wim
6
by: kevin | last post by:
using VS.2003... This has annoyed me endlessly. I hate the visual query designer in VS. Is it possible through add-ins or extensions to have query's you want to edit open in query analyzer,...
3
by: starman7 | last post by:
I'm attempting a query that gathers product data for a particular product id. One of the items is designer(s) which can be more than one. The product table has comma separated id's of the...
4
by: spamsickle | last post by:
I've created a query using the Query Designer under VB Express, and I can execute it in the Query Designer to verify that it returns the data I want. My database is called Area. It contains one...
3
by: kkleung89 | last post by:
I have a particular query I need to write, but I'm not quite sure how to do it. Basically, there's a table of appointments, which has a date and a PetID, which links it to a pet table, which has a...
10
by: Daniel | last post by:
In Microsoft Access I can write a query that includes the criteria: Between Date()-7 And Date() to retrieve the records from a table that fall within the last week. I'm trying to write a...
0
by: MikeZ | last post by:
If I try to use query designer when an add-in is open, the table list only shows tables in the add-in. If I close the add-in, then the table list shows the tables in the current DB. Obviously,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.