Click here to Skip to main content
15,900,973 members
Home / Discussions / Database
   

Database

 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
under28115-Jun-05 21:21
under28115-Jun-05 21:21 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Colin Angus Mackay5-Jun-05 22:42
Colin Angus Mackay5-Jun-05 22:42 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Yulianto.5-Jun-05 22:45
Yulianto.5-Jun-05 22:45 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Colin Angus Mackay6-Jun-05 8:12
Colin Angus Mackay6-Jun-05 8:12 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
Yulianto.6-Jun-05 16:02
Yulianto.6-Jun-05 16:02 
GeneralRe: Numbers of rows different in Q.A and in E.M.!! Pin
under28116-Jun-05 19:15
under28116-Jun-05 19:15 
GeneralSQL query builder from an App Pin
Leyu4-Jun-05 20:41
Leyu4-Jun-05 20:41 
GeneralRe: SQL query builder from an App Pin
niansah4-Jun-05 23:41
niansah4-Jun-05 23:41 
I do not know of a query-builder per se, but at one time we had to generate reports where the functionality would be similar to what you want to do. But like you said, it is difficult for users to write full blown queries, and not only that but you could also run into security problems...

The solution we came up was using templates (SQL Server 2000)...where we had multiple queries defined and users would click on the the most appropriate report type, enter some parameters and bingo, get a report back. A template might look like this:

<?xml version="1.0"?>
<data xmlns:sql='urn:schemas-microsoft-com:xml-sql'>
<sql:header>
<sql:param name="fieldid">0000</sql:param>>
</sql:header>
<sql:query>
Select CustomerName 'name' From dbo.Customer where gender = @fieldid for xml raw
</sql:query>
</data>
This would return the data in xml format (dat as root) - which can be routed through xslt to output nicely formatted result (text/html etc).

This is just an idea - I am sure there are other options out there. This worked well for us as we had more control over every aspect and we could add more "reports" as needed by users. Let me know if you want to pursue this option and I'll point you into the right direction.
GeneralRe: SQL query builder from an App Pin
Leyu6-Jun-05 5:59
Leyu6-Jun-05 5:59 
GeneralRe: SQL query builder from an App Pin
niansah6-Jun-05 23:41
niansah6-Jun-05 23:41 
GeneralLoads of problems in VB .net Pin
Mega14-Jun-05 18:57
Mega14-Jun-05 18:57 
GeneralRe: Loads of problems in VB .net Pin
Colin Angus Mackay5-Jun-05 0:16
Colin Angus Mackay5-Jun-05 0:16 
GeneralRe: Loads of problems in VB .net Pin
Luis Alonso Ramos6-Jun-05 7:10
Luis Alonso Ramos6-Jun-05 7:10 
QuestionHow it is showing name of owner different than actual in sql server2000 Pin
under28113-Jun-05 17:51
under28113-Jun-05 17:51 
GeneralImage in SQL Server 2000 Pin
Dino Sousa3-Jun-05 12:34
Dino Sousa3-Jun-05 12:34 
GeneralRe: Image in SQL Server 2000 Pin
zhengdong jin5-Jun-05 8:55
zhengdong jin5-Jun-05 8:55 
GeneralRe: Image in SQL Server 2000 Pin
Dino Sousa5-Jun-05 12:51
Dino Sousa5-Jun-05 12:51 
GeneralRe: Image in SQL Server 2000 Pin
zhengdong jin8-Jun-05 7:29
zhengdong jin8-Jun-05 7:29 
GeneralCreating a Access Database from SQL statements in C# Pin
Wilye3-Jun-05 11:05
Wilye3-Jun-05 11:05 
GeneralTransfering of files and folders Pin
Anonymous3-Jun-05 2:48
Anonymous3-Jun-05 2:48 
GeneralRe: Transfering of files and folders Pin
Colin Angus Mackay3-Jun-05 4:29
Colin Angus Mackay3-Jun-05 4:29 
QuestionIDispatch, ADORecordset and Property loss?!? Pin
almc3-Jun-05 0:54
almc3-Jun-05 0:54 
QuestionSQL DateTime average function? Pin
devvvy3-Jun-05 0:31
devvvy3-Jun-05 0:31 
AnswerRe: SQL DateTime average function? Pin
toxcct3-Jun-05 3:35
toxcct3-Jun-05 3:35 
AnswerRe: SQL DateTime average function? Pin
oykica6-Jun-05 7:32
oykica6-Jun-05 7:32 

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.