You are here Articles List / ASP Overview Section 6
Introduction
Response
Request
Application
Session
Server
Server Object
The Server Object is used to do several basic tasks: set the maximum amount of time a script
can run before it times out, take a string and either HTML or URL encode it, convert a virtual
web address in to an absolute path on the server, and to create an instance of COM components
to use in your ASP scripts.
An example use of this object is to create an instance of the ADODB.Connection object that is
used to establish a connection to a database.
Set Conn = Server.CreateObject("ADODB.Connection")
In the above code we set "Conn" equal to the instance of the ADODB.Connection object. From
here we would call the Open method of this object and pass in the appropriate parameters
(data source name, user id, password, etc) to open a connection to a database.
<< Prev Section - Session Object ||
Next Section - Wrap Up >>
|
|
|
|