472,328 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Mssql To Xml

Hello I have tryed to store the data from my db in a XML File But it doesnt create the File and it says Data Time Out:-(
Ps have just Searched on this Forum but there is nothing that helps me out mybe can help me anyone?
Here is the Code:
Expand|Select|Wrap|Line Numbers
  5. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  11. <title>Neue Seite 1</title>
  12. </head>
  14. <body>
  16. <%
  17.     Dim conn
  18.     Dim rs
  20.    Set conn = server.createObject("ADODB.Connection")
  21.     on Error Resume Next
  22.     SSN = Request.QueryString("SSN")
  23.     ' Verbindung zur Datenbank herstellen
  24.     conn.open "PROVIDER=SQLOLEDB;SERVER=123;ADDRESS=212,1234;UID=werer;PWD=666;DATABASE=MydB;"
  26.    set rs=Server.CreateObject("ADODB.recordset")
  28.    rs.Open "SELECT * FROM Betriebsdaten for XML", conn 
  29.      do until rs.EOF
  30.     for each x in rs.Fields
  31.      Response.Write(x.name)
  32.      Response.Write(" = ")
  33.      Response.Write(x.value & "<br />") 
  34.    next
  35.    Response.Write("<br />")
  36.    rs.MoveNext
  37.   loop
  39.  rs.close
  40.  conn.close
  41. %>    
  43. </body>
  45. </html>
Oct 26 '07 #1
2 1918
3,406 Expert 2GB
Right, so there are a couple ways to do this. I tend toward the do-it-yourself end of the spectrum, put the data into a long string including XML tags and save it to a text file using the textStream and fileSystemObject. That's how we had to do it back in my day when we used to have to write our code in clay with mallets and wait for some flunky with an abacus to render webpages.

Nowadays there is an XML server object provided, but I haven't used it to save XML files, and I would have to look it up to get it right. Since I know the syntax of the XML file it is just easier for me to write it by hand than rely on the server object.

Oct 27 '07 #2
hi Thx for reply u can maybe make me an example=?
Oct 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: badz | last post by:
Hi frenz Lately I try to use MSSQL and PHP , the problem arise when PHP try to read MSSQL field with 'image' data type, header("Content-type:...
by: mj | last post by:
Hello, thanks for the help. I am running a WinXP Pro w/ SP2 (my home computer, with ZoneAlarm firewall) Apache 2.0.52 MySQL 4.1.7 PHP...
by: JackTorrance | last post by:
Hi i have a problem with IIS6 and MSSQL and i hope that someone can help me. this is the configuration: Windows 2003 IIS6 MSSQL 7.0...
by: Kukurydz | last post by:
I've got such problem: My database is stored on MSSQL Server. I have to write reports for it in MSAccess. I've got a problem with creating a query...
by: gharmel | last post by:
I'm trying to get some clues on why I get (much) slower responses from my PHP applications when dealing with a remote sql server as opposed to a...
by: ralphie | last post by:
hi all since nearly 2 days i fight with mssql and utf-8 as i need to store and retrieve arabic characters. i tried the com approach ...
by: DariuszK | last post by:
I am greeting I would like to consult the better solution(with security consideration) to the access is for MSSQL(2005) from ASP(Classic) in the...
by: php-taz | last post by:
I built a PHP website on Windows 2000 (using IIS) that connects to a SQL Server 2000 database using the mssql functions. I migrated the website...
by: Derftics | last post by:
Hi Guys, Is there anyone who have tried installing MSSQL 2000 and MSSQL 2005 servers in one desktop computer? I have tried using MSDE and...
by: guswebb | last post by:
Hi. I'm a newbie to PHP and am having a few problems as follows... I have installed PHP successfully on server 1 which is running IIS 6 (W2k3) and...
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.