dbIdFileDir (updated May 2009)

dbIdFileDir allow user to specify the physical path of the id file instead of depositing the file in the default system32 directory with mandatory default name.  If this property is specified and the file exists then dbDebug=109 will not display the id file tracking as the file is valid.

ASPdb picks up the default system directory using 'GetSystemDirectory' call so whether you have 'windows/system32' or 'winnt/system32', it does not matter.

Note: If your id file setup is not correct then you'll get a 'Type Mismatch' error.

Property Syntax

Obj.dbIdFileDir = "Physical path that holds the id file"

Note: default file name = _ASPDBxxxx.id (xxxx=year; note the underscore). This id file name must be exact in default form. It can be anything using dbIdFileDir.

Example

* Default ID file location = c:\windows\system32\_ASPDB2009.ID

<%
Set x = Server.CreateObject("ASP.db")
x.dbidfiledir = "c:\windows\system32\GOLD-2009.ID"
x.dbdebug=109
response.write("Version = " & X.dbVersion & "<BR>" & X.dbLicense)
%>

 

<% 
Set X=Server.CreateObject("Asp.DB")
X.dbQuickProps="1;NWIND;;Grid;;;;ACCESS;5"
x.dbidfiledir = "c:\windows\system32\GOLD-2009.ID"
X.ASPDB
 
%>

 


Output

...Looking for ID file: C:\WINDOWS\system32\_ASPDB2009.ID file
Version = CLASSIC ASPDB-02-28-09-XP-SP3-ADO21-MTS-Gold
ID file path = C:\WINDOWS\system32\_ASPDB2009.ID
ASP-db(tm) (C)1998-2009 by ASP-db Inc. - Licensed to xxxx of xxx
Maintenance Expiration - Mar 01 2010
DLL release date - Feb 28 2009

Note: the bolded line will not be display if dbIdFIleDir is specified and also valid.