ONE Active Server Pages Product Home Page Developer Site Version


Creating Database Connections in a Shared Environment

With Sun ONE Active Server Pages, ASP developers can specify the connection information for a database by using either system DSNs (data source names), file DSNs, or DSN-less connection strings. The appropriate method depends on user preferences and the environment in which Sun ONE ASP is running.

In enterprises and other dedicated hosting environments, it is recommended that ASP developers use system DSNs. The system administrator uses the Sun ONE ASP Administration Console to create system DSNs, which then can be referenced from within an ASP application for initializing a database connection. For more information, see Configuring Data Source Names (DSNs).

However, in a shared Web hosting environment, such as with an Internet Service Provider, system DSNs pose two problems:

See also:

Configuring a Database

Creating Database Connections (ASP Server)

Using DSN-less Connection Strings