Accessibility
 
Home > Products > UltraDev > Support > Connecting to a Database
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Connecting to a Database
Understanding the ADO wrapper

When an ASP Web application needs to interact with a database, it sends instructions to the OLE-DB interface, which translates and passes the instructions on to the database (or to an intervening ODBC interface, if an OLE-DB interface does not exist for your database). If the database sends a response, the OLE-DB interface translates it and passes it back to the ASP application.

Unfortunately, the OLE-DB interface only understands instructions received from an application if the instructions are written in C++, a powerful but advanced programming language. To get around this problem, Microsoft created ActiveX Data Objects, or ADO for short, and included it in its ASP server technology (among other technologies).

ADO is known as a wrapper: its role in ASP is to hide the complexity of OLE-DB. Like the Document Object Model (DOM) of Web browsers, ADO provides ASP developers with a hierachical series of objects that they can easily manipulate in the programming language of their choice, including JavaScript and VB Script. Common ASP objects include the Request, Session, and Application objects.

To Table of Contents Back to Previous document Forward to next document