dbdriver()
Description: returns information
about the driver being used
Syntax: dbdriver(f)
Parameters:
-
f: ODBC file previously opened
with dbopen()
The return type is a record with the following
fields:
-
"name": filename of the driver
used to access the data source.
-
"ver": version of the driver adn,
optionally a description of the driver.
-
"odbcver": version of ODBC that
the driver supports.
-
"dsn": A caracter string with the
data source name used during connection.
-
"connections": maximum number of
active connections that the driver can support (zero for no specified limit
or if the limit is unknown).
-
"statements": maximum number of
statements that the driver can support for a connection (zero for no specified
limit or if the limit is unknown).
Code Example
procedure main()
f:=open("mydb","O","mytable","fbalbi","") # open mytable
drvinfo:=dbdriver(f) # get driver information record
write("driver name : ", drvinfo["name"]) # or drvinfo[1]
write("driver version : ", drvinfo["ver"]) # or drvinfo[2]
write("driver ODBC ver : ", drvinfo["odbcver"]) # or drvinfo[3]
write("connections : ", drvinfo["connections"]) # or drvinfo[4]
write("statements : ", drvinfo["statements"]) # or drvinfo[5]
write("data source name: ", drvinfo["dsn"]) # or drvinfo[6]
close(f) # close table
end