Click here to Skip to main content
6,635,160 members and growing! (17,484 online)
Email Password   helpLost your password?
Database » Database » Utilities     Intermediate

QueryCommander SQL Editor

By Mikael Håkansson

QueryCommander SQL editor with IntelliSense, wrapped in a Visual Studio type of environment. QueryCommander supports: Microsoft SQL Server 6.5-2005, MySQL 4.*-5.1, and Oracle 9i.
C#, SQL, Windows, .NET, Visual Studio, ADO.NET, SQL 2000, SQL 2005, DBA, Dev
Posted:1 Feb 2005
Updated:27 Sep 2005
Views:166,240
Bookmarked:246 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
55 votes for this article.
Popularity: 8.20 Rating: 4.71 out of 5
1 vote, 1.8%
1
1 vote, 1.8%
2

3
5 votes, 9.1%
4
48 votes, 87.3%
5

Sample Talbe IntelleSense

Sample Column IntelliSense

Sample Talbe IntelleSense

Sample Column IntelliSense

Introduction

With version 4.0 of QueryCommander comes loads of new or improved features such as:

  • Much improved VSS support.
  • Test bench for testing scripts and database objects.
  • Implemented �edit-in-grid� for Oracle.
  • Encrypted password.
  • Extended objects in Server Explorer (table fields, triggers and UDTs to the server browser etc.).
  • Print functionality (output or statement).
  • Abort running query.
  • Documentation Header enhancements.
  • Query builder for creating statement by drag and drop of fields into a Query window.
  • Extended database support for Firebird and DB2.
  • Customized tab size setting.
  • The IntelliSense is extended to give the user information about all possible joins between tables in a statement.
  • Filter option on creating documentation file.
  • Save before close window.
  • New plug-ins for saving result as XML and for saving result as an Excel file.
  • And much, much more.

For those who yet haven't used QueryCommander, it is basically a SQL editor in a modern developer environment with IntelliSense and many useful features to help in the day to day work with databases. It is not the complete database administration tool. If you really need to dig down the fundamentals, you should use Microsoft Query Analyzer, Toad etc. However, if you need a good tool to rapidly create queries, stored procedures, user defined functions etc., we hope QueryCommander will be your alternative.

QueryCommander supports:

  • Microsoft SQL Server 2005
  • Microsoft SQL Server 2000
  • Microsoft SQL Server 6.5
  • MySQL 4.x
  • Oracle 9i
  • Firebird
  • DB2

Background

The application has been developed since May 2003. Its primary goal is to bring a more modern environment to the developers working with databases. It started out with a handful of features such as IntelliSense, unified comment header generator etc. But as the application spread to more users, the demands for more features grew. The project has been hosted on the SourceForge where many developers and users have helped in the evolution of this application. The requests for more features have been greater than ever. This is the main reason why the future of this project is best served under the OpenSource "umbrella".

Using the code

Since the code is subject to changes, please visit the SouceForge site for downloading the code.

GUI Framework

Weinfen Luo has been kind enough to provide us with the Visual Studio layout and design. This means we have a MDI form (MainForm.cs) and some child forms (FrmQuery, FrmOutput, FrmDBObjects etc...). In order for this to work, the child window inherits from WeinfenLuo.WinFormsUI.DockContent. All other windows are "pop-up"-dialogs (FrmGotoLine, FrmSearch, FrmXMLErrors etc.).

Query Window

The Editor dialog (FrmQuery) initiates most of the public logic within this application. Each Query dialog has its own database connection object.

The Editor

This has been the biggest challenge while developing the QueryCommander, until the guys at SharpDevelop released their ICSharpCode.TextEditor. It took some minor adjustments in order to make the highlighting work with the SQL language.

Database

QueryCommander supports five different data providers, each data provider has its own Data Manager which inherits from IDatabaseManager. A Data Manager comes with a set of predefined queries used for IntelliSense etc. These queries are found in \Meta\QueryString.xml.

Credits and thankfulness

  • Weifen Luo - DockPanel Suite is designed to achieve docking capability for MDI forms. It can be used to develop Visual Studio .NET style applications.
  • #develop - SharpDevelop is an open source IDE for the .NET platform. QueryCommander is using their ICSharpCode.TextEditor.
  • Rockwolf - For hosting the development of QueryCommander.
  • Aprenot - Reusable Diff Algorithm in C#.
  • Rama Krishna Kolluri - C# class library for exporting data to CSV/Excel file.
  • Franz Ehrenhuber - For testing, help and input.
  • Frans Nylin - For helping out with the Oracle implementation.
  • Lindsey Lewis - For developing, help and input.
  • Christian Halvarsson and Farid Benhajji - For helping out with the web layout.

For more information

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Mikael Håkansson


Member

Occupation: Web Developer
Location: Sweden Sweden

Other popular Database articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 100 (Total in Forum: 100) (Refresh)FirstPrevNext
GeneralMissing "normally expected" features PinmemberPandele Florin8:26 29 Sep '09  
GeneralSupport Oracle 10g ? Pinmemberalhambra-eidos0:14 22 May '09  
QuestionQueryCommander SQL Editor License Pinmemberirinabe1:27 20 Jan '09  
GeneralI couldnt get it to work Pinmemberuofakron10:26 13 Nov '07  
GeneralSybase Support PinmemberC.DHAKCHINA MOORTHY1:49 22 Oct '07  
QuestionIntellisense not working Pinmembercyber-drugs3:59 6 Sep '07  
GeneralEditor and underscore PinmemberOne_Turtle4:13 29 Aug '07  
GeneralWon't connect? Pinmemberjholovacs3:35 24 Jul '07  
GeneralSQL Intellisense PinmemberRavi Gyani11:57 27 Apr '07  
QuestionProblem with font Pinmemberoaxaca_salsa23:53 2 Apr '07  
QuestionDoes it support Oracle10g? Pinmemberhermanho5:11 12 Mar '07  
GeneralSET QUOTED_IDENTIFIER PinmemberVEMS10:49 10 Jan '07  
GeneralApplication Gives Error each time PinmemberManish Chowdhary18:28 6 Nov '06  
QuestionDoes anyone know of a visual SQL editor? PinmemberPaul Touzel3:16 13 Jun '06  
GeneralChanging default port Pinmembere1e0n5:28 2 Mar '06  
GeneralRe: Changing default port Pinmembere1e0n6:09 2 Mar '06  
GeneralHELP ME!PLEASE PinmemberAxiao79019:18 28 Feb '06  
GeneralRe: HELP ME!PLEASE PinmemberDiamond1123:10 8 Jun '06  
Generalwhich tools you use to make your pictures like your post in this page? Pinmembersilas_yao18:23 22 Feb '06  
GeneralRe: which tools you use to make your pictures like your post in this page? Pinmemberwmmihaa12:05 12 Aug '06  
GeneralSuggestion to add stored procedure generation PinmemberManish A Pansiniya20:57 2 Jan '06  
GeneralRe: Suggestion to add stored procedure generation PinmemberManish Pansiniya6:29 13 Dec '06  
GeneralQueryCommander SQL Editor rocks Pinmembercpsagman10:53 27 Nov '05  
GeneralGreat app Pinmemberkin3tik21:34 20 Nov '05  
GeneralQC 4.0 is not working..:( PinmemberKelraad4:17 4 Oct '05  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 27 Sep 2005
Editor: Smitha Vijayan
Copyright 2005 by Mikael Håkansson
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project