.NET Query Builder component
Asked Answered
B

4

6

Can anyone reccomend a free .NET libary which allows you to expose a SQL Query builder to your users in a windows form app? I'd like my users to be able to run relatively straight forward SELECT statements, including some JOINS and other multi-table operations without getting into the real nitty-gritty of SQL.

Thanks, sweeney

Borlow answered 17/6, 2009 at 16:22 Comment(6)
Exposing a query builder to your users seems like a bad idea. Are you sure you want to let your users run their own queries? That sounds like it could open up some pretty serious security concerns.Biggs
@Dan As long as you limit the tables a user can connect to and the types of actions run against it (e.g. CONNECT, SELECT only), should be ok, no?Brigandine
Yea well i dont want them running INSERTS or UPDATES or DELETES, or really anything aside from SELECT. Its geared toward a smart but not necessarily technical audience. One of the apps I have in mind geared toward the research community - they'll understand what they are doing and wont have malicious intent. With my other application, if they do somehow manage to wreck the db with a SELECT statement, the data can easily be duplicated. So I dont consider this a problem at all.Borlow
@Brigandine - right theres no real harm that can come from running select statements right?Borlow
Additionally most DB engines will allow you to specify which tables a user can even look at...Borlow
@sweeney: select * from [User] can be pretty dangerous...Revolt
M
4

If you still looking for such component you maybe should take a look at EasyQuery.NET: http://devtools.korzh.com/query-builder-net-winforms/

Microtome answered 1/11, 2010 at 8:34 Comment(0)
S
3

Report Builder is part of SQL Server Reporting Services, and it lets you do all of that and more. You can setup non-MSSQL data sources as well. We have non-developers use it all the time for creating reports with joins, grouping and so on with no SQL code.

The license is included in SQL Server Workgroup and above. I don't know if that's "free" enough for you.

Shoshanashoshanna answered 17/6, 2009 at 17:37 Comment(3)
Can this be deployed without installing the full SQL engine preferably as part of my own application?Borlow
It installs on top of IIS, and needs to be able to connect to a SQL Server to install its config DB. The IIS server can be on your app server.Shoshanashoshanna
Cool this may be an acceptable solution for one of my problems. Thanks! For the other situation I still need something really lightweight, that can be deployed as a DLL or a code library that I can just use.Borlow
K
0

You can use Aspose.Report AdHoc.WinForms component (it is not free). It requires no SQL server running, works fine with multiple tables and also have the ability to make automated table join.

Take a look at the component demo on Aspose site.

Kilt answered 18/6, 2010 at 16:56 Comment(2)
Looks like this product has now been discontinued by Aspose.Rangel
seems it is discontinued.Baroja
B
-1

You can use CodeEngine.Framework classes to select,insert,update,delete operations

Bomke answered 5/8, 2009 at 11:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.