By admin | January 25, 2008

XML and Database

XML interaction with multiple database. Here we have taken two databases - Oracle (Remote) and Access (Local)

<% @Language=VBScript %

<?xml version=’1.0′?>

<?xml-stylesheet type=”text/xsl” href=”Fstyle1.xsl”?>

<people>

<%

set con=server.CreateObject(”adodb.connection”)

con.Open “dsn=asu;uid=asu;pwd=asu”

set rs = server.CreateObject(”adodb.recordset”)

set rs = server.Execute(”Select *From Emp”)

%>

<student>

<name><%=rs(0)%></name>

<roll><%=rs(1)%></roll>

</student>

<%

rs.Movenext

loop

%>

</people>
 

Digg Facebook Technorati Bloglines

Email This Post Email This Post
Topics: Scripts |

Leave a Comment

Name:

E-Mail :

Website :

Comments :

Ad
Ad

Forum

Calendar

August 2008
M T W T F S S
« Jun «-»  
 123
45678910
11121314151617
18192021222324
25262728293031

Search

Polls

  • Who will rule the world?

    View Results

    Loading ... Loading ...