Solved

Sql Query Parser

Posted on 2003-11-17
4
920 Views
Last Modified: 2012-08-13
hi all
first of all sorry for my English!

 i want code for query parser wriiten in any higher level lang.
the thing is that code should support normal select ,where ,having and group by
and everything that is needed to write an query.

actually the thing is
fieldnames and tablenames, which user gives in input query, are different from those of actual database
so i want mapp the fieldnames and tablenames with some different names and then want to form a new query which database can execute and then want to give output in users format.

so plz guide me how to do this also if there is some query parser kind of thing with code then that can be also useful or else any other advice is most wel-come.
thanks in advance
bye
 
0
Comment
Question by:rashmitodkar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Expert Comment

by:SNilsson
ID: 9769227
Here is some source code to get you started:

http://www.allfreetech.com/ShowMain.asp?MainID=133

On the bottom of that page you can view or download source.

The parser is implemented as a server-side JavaScript object, but should also be usable from Visual Basic or could be converted into Visual Basic without too much effort.
0
 
LVL 34

Accepted Solution

by:
arbert earned 125 total points
ID: 9815943
If you have Visual Basic, you can add a reference to the Microsoft SQL Parser and call it like any other com object....
0
 
LVL 1

Author Comment

by:rashmitodkar
ID: 9816271
hi arbert,
  Thank you very much for the answer!


0
 
LVL 1

Author Comment

by:rashmitodkar
ID: 10010275
hi arbert
 
 i want some documentation for this Microsoft SQL Parser,
can you tell me where could i get this documentation.

thanks in adv.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 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