Solved

Sql Query Parser

Posted on 2003-11-17
4
855 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
This article describes some very basic things about SQL Server filegroups.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now