Click here to Skip to main content
15,918,275 members
Home / Discussions / Database
   

Database

 
GeneralVC++ ADO Recordset Close Vs NULL Pin
Nemikesoria8-Jun-04 4:47
Nemikesoria8-Jun-04 4:47 
Generalsql reporting services Pin
robmays8-Jun-04 4:03
robmays8-Jun-04 4:03 
GeneralADO & GUID & C++ Pin
Mobileware8-Jun-04 0:46
Mobileware8-Jun-04 0:46 
QuestionI want to do a ETL tool. ADO is feasible? Pin
utiao7-Jun-04 21:27
utiao7-Jun-04 21:27 
AnswerRe: I want to do a ETL tool. ADO is feasible? Pin
Anonymous11-Jun-04 9:47
Anonymous11-Jun-04 9:47 
GeneralOracle REF Cursor and Generic DAL Pin
Vasudevan Deepak Kumar7-Jun-04 17:55
Vasudevan Deepak Kumar7-Jun-04 17:55 
GeneralProblem using table aliases in ADO.net dataset Pin
frank217-Jun-04 11:06
frank217-Jun-04 11:06 
GeneralReturn ID from Insert Query Pin
RDoes7-Jun-04 3:56
RDoes7-Jun-04 3:56 
GeneralRe: Return ID from Insert Query Pin
GISnet7-Jun-04 5:43
GISnet7-Jun-04 5:43 
Generalcode for db access in C# Pin
Md Saleem Navalur7-Jun-04 2:32
Md Saleem Navalur7-Jun-04 2:32 
GeneralRe: code for db access in C# Pin
GISnet7-Jun-04 5:48
GISnet7-Jun-04 5:48 
Generalexport to access Pin
suzyb7-Jun-04 1:52
suzyb7-Jun-04 1:52 
GeneralRe: export to access Pin
GISnet7-Jun-04 5:54
GISnet7-Jun-04 5:54 
GeneralRe: export to access Pin
Mike Ellison7-Jun-04 9:59
Mike Ellison7-Jun-04 9:59 
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 

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.