Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to include ADOVBS in your ASP globally

Optimization

How to include ADOVBS in your ASP globally

by  baddos  Posted    (Edited  )
Instead of including the ADOVBS.INC file on your ADO dependant pages or including the Type Library, try including it in the global.asa. This will save CPU cycles and only require minimal system RAM.

Code:
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5 Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"-->
<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows 2000 Library"-->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
	'Some code...
End Sub
Sub Session_OnStart
	'Some code...
End Sub
</SCRIPT>
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top