You are on page 1of 1

*******************************************

Project: GOIS Remote Database Administor


Purpose: This article describes how to administer remote database via XMLHTTP an
d ADOX.
It is useful to webmasters who use virtual hosting.
Author: Lu Lianbo
License: Freeware
E-mail: lianbo@gois.ws
Web Site: http://eng.gois.ws
Date: July, 2002
*******************************************
NOTE: All the tables in this sample use an Autoincrement field as the primary ke
y. If the primary key in your tables is not Autoincrement type or there is not p
rimary key in your tables, you should rewrite above codes. In my opinion, use a
Autoincrement field as primary key is a good habit.
*******************************************
System required:
To run this sample, the follows should be installed on your PC:
Windows 98/Me/XP/2000£¬MSXML 4.0£¬MS Access 2000£¬IE 5.5 or above.
Install and execute:
1. Download the sample ZIP file - supervisor.zip.
2. Unzip the file under a path in your IIS, for example: C:\Inetpub\wwwroot\supe
rvisor¡£
3. Input "localhost/supervisor/supervisor.asp" in the url address on your IE, th
en GO.
4. By a little changing, such as change the path, authorize the user, you can up
load this sample source to your virtual hosting to administer your own database.
There are several sample databases and two source files in the downloadable ZIP
file.
The sample databases will automatically unzip to a "database" path under the wor
king path, for example:
/superviosr/database¡£
Two source files are:
¡¡A service page codes runs on the server: server.asp
¡¡A client page codes runs on client site: supervisor.asp
¡¡
The functions of the buttons on the demo:
¡¡Refresh: Refresh database path. Rewrite the path and push this button will result
in subsequently all different results.
¡¡List: List the selected field's contents.
¡¡Max: Get the MAX value and display it in the ID editor. It is called automatically
after select a table.
¡¡Count: Count the selected field's number.
¡¡Show: Get and show the content specified by ID and selected field.
¡¡Modiry: Modify the content specified by ID and selected field.
¡¡Delete: Remove the record specified by ID.
¡¡SQL: Execute SQL query which is input in the text editor(upper).
¡¡ The text editor below will show the result of execution.
¡¡ +: Expand/Contract the text editor.

If any problems or suggestions, please feel free to write me: lianbo@gois.ws, or


leave your message in my site: http://eng.gois.ws
Enjoy programming!

You might also like