Click here to Skip to main content
15,896,154 members
Home / Discussions / Database
   

Database

 
Generaldb @ pocket pc Pin
ting6687-Jun-04 0:23
ting6687-Jun-04 0:23 
GeneralRe: db @ pocket pc Pin
Richard Jones8-Jun-04 6:18
Richard Jones8-Jun-04 6:18 
GeneralSQL Enterprise Manager Question Pin
matthias s.6-Jun-04 21:51
matthias s.6-Jun-04 21:51 
GeneralAnswer Pin
matthias s.6-Jun-04 22:01
matthias s.6-Jun-04 22:01 
QuestionCould OdbcCommandBuilder be used on db2 or oracle? Pin
Paul Lo6-Jun-04 21:29
Paul Lo6-Jun-04 21:29 
GeneralBinding Multiple Relational Tables to different Controlls Pin
EmanAli6-Jun-04 20:21
EmanAli6-Jun-04 20:21 
GeneralGenerate SQL Script Pin
Sarvesvara (BVKS) Dasa5-Jun-04 23:46
Sarvesvara (BVKS) Dasa5-Jun-04 23:46 
GeneralRetreiving Data as XML from MS SQL server Pin
pelos5-Jun-04 7:09
pelos5-Jun-04 7:09 
<hello,

I am trying to develop a simple application to retrieve data from MS SQL server using XML Templates. The application consists of a main HTML page with a form. The form has 3 text box to filter data (ID, name and title).
When the user pushes the "submit" button a XML template is loaded and the 3 text box values are passed as parameters:

For Example:
http://localhost/nwind/template/EmployeesList.xml?EmployeeID=1&Name=Nancy&Title=Sales+Representative&Submit=Go

The XML template is this:

<?xml version='1.0' ?>
<EmployeesList xmlns:sql='urn:schemas-microsoft-com:xml-sql'
sql:xsl='EmployeesList.xsl'>
<sql:header>
<sql:param name='EmployeeID'></sql:param>
<sql:param name='Name'></sql:param>
<sql:param name='Title'></sql:param>
</sql:header>
<sql:query>
SELECT EmployeeID, FirstName, LastName, Title
FROM Employees
WHERE EmployeeID = @EmployeeID
AND FirstName = @Name
AND Title = @Title
FOR XML AUTO
</sql:query>
</EmployeesList>
</code>

As you can see, the template use the 3 params to filter data.

This runs ok if the user sets well the 3 values in the text boxes but if the user leaves a text box blank it does not.
What i want to do is a filter: if the user only sets text in a text box the application has to list every employees with this text box value.

Could you help me? How can i do this?
thank you very much!
GeneralRe: Retreiving Data as XML from MS SQL server Pin
pelos5-Jun-04 21:43
pelos5-Jun-04 21:43 
GeneralRe: Retreiving Data as XML from MS SQL server Pin
Xiangyang Liu 刘向阳7-Jun-04 4:15
Xiangyang Liu 刘向阳7-Jun-04 4:15 
GeneralDatabase import from XML Pin
Richard Jones4-Jun-04 7:45
Richard Jones4-Jun-04 7:45 
GeneralDB Conversion apps/tools Pin
Jörgen Sigvardsson4-Jun-04 0:07
Jörgen Sigvardsson4-Jun-04 0:07 
GeneralRe: DB Conversion apps/tools Pin
RichardGrimmer4-Jun-04 2:03
RichardGrimmer4-Jun-04 2:03 
GeneralRe: DB Conversion apps/tools Pin
Jörgen Sigvardsson4-Jun-04 2:40
Jörgen Sigvardsson4-Jun-04 2:40 
GeneralRe: DB Conversion apps/tools Pin
Jörgen Sigvardsson4-Jun-04 7:58
Jörgen Sigvardsson4-Jun-04 7:58 
GeneralRe: DB Conversion apps/tools Pin
RichardGrimmer6-Jun-04 21:55
RichardGrimmer6-Jun-04 21:55 
General.NET Data Provider for AS400 DB2 Pin
Member 44505513-Jun-04 23:41
Member 44505513-Jun-04 23:41 
GeneralRe: .NET Data Provider for AS400 DB2 Pin
Thea Burger4-Jun-04 0:14
Thea Burger4-Jun-04 0:14 
QuestionIs a monitor tool for MS Access Database? Pin
spi_cn2-Jun-04 20:55
spi_cn2-Jun-04 20:55 
AnswerRe: Is a monitor tool for MS Access Database? Pin
RichardGrimmer3-Jun-04 5:11
RichardGrimmer3-Jun-04 5:11 
GeneralRe: Is a monitor tool for MS Access Database? Pin
spi_cn3-Jun-04 14:47
spi_cn3-Jun-04 14:47 
Generalconfigure publishing and distribution Pin
guan hwang2-Jun-04 15:27
guan hwang2-Jun-04 15:27 
GeneralSQL Server Memory Process Not Shutting Down Pin
Member 6666072-Jun-04 11:56
Member 6666072-Jun-04 11:56 
GeneralRe: SQL Server Memory Process Not Shutting Down Pin
RichardGrimmer3-Jun-04 5:14
RichardGrimmer3-Jun-04 5:14 
GeneralQuestion involving SQL/Queries/Crystal Reports Pin
frank212-Jun-04 10:15
frank212-Jun-04 10:15 

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.