If youre an ASP developer working with a commercial Internet service provider (ISP), you often dont know the physical path of the files you upload, including your database file or files. If your ISP doesnt define a DSN for you or is slow to do so, you must find another way to create the connections to your database files. One alternative is to create a DSN-less connection to a database file, but you can define such a connection only if you know the physical path of the database file on the ISPs server.
This section describes how you can obtain the physical path of a database file on a server by using the MapPath
method of the ASP server object. The section covers the following topics:
NOTE |
|
The techniques discussed in this chapter apply only if your database is file-based, such as a Microsoft Access database where data is stored in an .mdb file. |