Before you can access a database from your Web application you must make the application "aware" of the database.
The VirtualBookShelf.com Web site will access a Microsoft Access database called
You associate a database with your Web application in Visual Studio by adding a Data Environment.
The Data Environment contains the information needed to access the data.
This information includes one or more logical connections
and command objects
The Global.asa file manages the Data Environment and the database connections. Therefore, they are available to all the Web pages in
The following simulation guides you through setting up a Data Environment for the VirtualBookShelf.com project. This example assumes the database,
virtualbook.mdb, is stored in the project directory. The path to the project directory should be something like: c:\My Documents\Visual Studio