Making the Connection Between Your ASP Page and Database File

To make a connection between an ASP page and a database, you need to know the path to the database. The process itself is simple enough if you have the right path. However, when you get the formula, you can reuse it on any database within the same server. The following path was used:

						d:\Inetpub\Wwwroot\hotJava\javaS.mdb; 

In the example, drive D is used, but the correct drive could have been drives C or E, or any other drive. The important fact to note in the path is that it is an internal path to the root directories on the server. So, while a different address had to be used to access the ASP pages (such as http://myserver.com) that contained the code, the path in the ASP page ...

Get JavaScript Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.