Click here to Skip to main content
15,921,276 members
Home / Discussions / Database
   

Database

 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 1:21
betterc14-Apr-04 1:21 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 1:39
Sarvesvara (BVKS) Dasa14-Apr-04 1:39 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 13:51
betterc14-Apr-04 13:51 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 18:45
Sarvesvara (BVKS) Dasa14-Apr-04 18:45 
GeneralADOX & ADO Pin
Shenthil7-Apr-04 19:18
Shenthil7-Apr-04 19:18 
GeneralRe: ADOX & ADO Pin
Steve S8-Apr-04 1:08
Steve S8-Apr-04 1:08 
GeneralSelect SQL String Pin
Nguyen Vu Cuong7-Apr-04 15:50
Nguyen Vu Cuong7-Apr-04 15:50 
GeneralRe: Select SQL String Pin
Steven Campbell13-Apr-04 9:17
Steven Campbell13-Apr-04 9:17 
I have written a basic SQL parser before, but it was parsing generated SQL, which was fairly tightly under my control anyway. I would not want to do it for SQL that the user typed! SQL can be very complex, with nested queries and multiple ways of writing the same query. Most typed queries will be simple though, so maybe you can get by with something basic, that works in 90% of cases.

Alternate solution 1: I would leverage what I could from SQL Server. In SQL Query Analyzer, you can look at the query plan for a particular query. This shows some of what you are interested in. Perhaps you could find out how that is done, and use a similar technique.

Alternate solution 2: SQL Enterprise and SQL Query analyzer both have a query designer tool that does something similar to what you want. It may be that there is an underlying API that you could utilize.

Alternate solution 3: Create a temporary view from the SQL, and then use various techniques to analyze that view. sp_depends will tell you the tables, sp_help will tell you the result structure. Not sure how you would tell the relationships though.
GeneralRe: Select SQL String Pin
Nguyen Vu Cuong13-Apr-04 15:30
Nguyen Vu Cuong13-Apr-04 15:30 
GeneralRow lock versus Page lock in SQL 2000. Pin
mittalpa7-Apr-04 8:32
mittalpa7-Apr-04 8:32 
GeneralRe: Row lock versus Page lock in SQL 2000. Pin
Mike Dimmick8-Apr-04 2:32
Mike Dimmick8-Apr-04 2:32 
GeneralRe: Row lock versus Page lock in SQL 2000. Pin
-Dr_X-15-Apr-04 16:51
-Dr_X-15-Apr-04 16:51 
GeneralGrrrr -- Oracle OLE DB Driver Pin
Steve S7-Apr-04 5:27
Steve S7-Apr-04 5:27 
GeneralRe: Grrrr -- Oracle OLE DB Driver Pin
RichardGrimmer19-Apr-04 5:19
RichardGrimmer19-Apr-04 5:19 
GeneralDefault field value Pin
Shenthil7-Apr-04 1:47
Shenthil7-Apr-04 1:47 
GeneralCreate a Database Softwre Pin
Ajit Jagannath6-Apr-04 5:27
Ajit Jagannath6-Apr-04 5:27 
GeneralRe: Create a Database Softwre Pin
Hesham Amin6-Apr-04 21:35
Hesham Amin6-Apr-04 21:35 
GeneralDAO Access and system.mdw Pin
cr976-Apr-04 3:56
cr976-Apr-04 3:56 
GeneralRe: DAO Access and system.mdw Pin
Mike Ellison6-Apr-04 5:45
Mike Ellison6-Apr-04 5:45 
GeneralRe: DAO Access and system.mdw Pin
cr976-Apr-04 21:47
cr976-Apr-04 21:47 
GeneralRe: DAO Access and system.mdw Pin
Mike Ellison7-Apr-04 5:28
Mike Ellison7-Apr-04 5:28 
GeneralRe: DAO Access and system.mdw Pin
cr977-Apr-04 21:15
cr977-Apr-04 21:15 
GeneralMultiple table select queries in mySQL Pin
docdeath6-Apr-04 2:38
docdeath6-Apr-04 2:38 
QuestionHow to join on multiple records? Pin
matthias s.6-Apr-04 1:27
matthias s.6-Apr-04 1:27 
AnswerRe: How to join on multiple records? Pin
Mike Dimmick6-Apr-04 1:42
Mike Dimmick6-Apr-04 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.