When you connect to a database through an ASP page you are using a set of objects referred to as Active Data Object, or ADO. This library of objects contains a number of constants that can be used when specifying various properties or making various method calls for the ADO objects.
ADOVBS.inc is a file included with IIS that has all of the ADO constants defined. When revieweing ASP scripts from this Web site and other related sites, you'll find a lot of ASP scripts that, when connecting to databases, use constants with names like adOpenForwardOnly and adLockReadOnly. These are constants that are defined in the ADOVBS.inc file and define various connection and recordset properties with English-like names.
If you want to use ADO objects and would like to have access to these constants, you will need to include ADOVBS.inc in your ASP page. To do this all you need to do is add one simple line to the top of your ASP pages:
<!--#include virtual="/adovbs.inc"-->
and be sure to put ADOVBS.inc in your root web application directory. (To learn more about #include, be sure to read: The Low-down on #include.)
'-------------------------------------------------------------------- ' Microsoft ADO ' ' (c) 1996-1998 Microsoft Corporation. All Rights Reserved. ' ' ' ' ADO constants include file for VBScript ' '--------------------------------------------------------------------
Note that you can also automatically includeADOVBS.inc in all of the pages on your Web site using the METADATA tag in your Global.asa file. For more information on using the METADATA tag, be sure to read: Using METADATA to Import DLL Constants!
Do you have a FAQ you'd like to suggest?
Suggestions? Comments? If so, send it in!
Also, if you'd like to be a FAQ Admin (creating/editing FAQs),
let me know! If you are looking for other FAQs, be
sure to check out the 4Guys
FAQ and Commonly Asked Messageboard Questions!