UtilLowestAllowedMSSQLDRV_And_ClientVersion
To check that the client machine has the correct database driver and database client version installed. Returns a multi-line string with the machines database driver and client software information.
Type: Function
Parameters: String sDriverVersion, Integer iClientVersion
Parameter |
Description |
sDriverVersion |
A string value with the lowest version of the DAW database driver allowed. |
iClientVersion |
An integer value representing the lowest allowed SQL Client version software on the machine. |
bShowErrorDialog |
Pass True to show an error dialog informing about the wrong version(s). |
bExitProgram |
Pass a True to make the program exit if the version criteria is not met. |
Syntax
Function UtilLowestAllowedMSSQLDRV_And_ClientVersion String sDriverVersion Integer iClientVersion Boolean bShowErrorDialog Boolean bExitProgram Returns String
Call: |
Get UtilLowestAllowedMSSQLDRV_And_ClientVersion "6.3.0.13" 10 True True to sVersionInfo |
Example
Object oDbUpdateHandler is a cDbUpdateHandler
Set piDbVersionFileNumber to 1
Set piDbVersionFieldNumber to 1
Set phoDbUpdateHandler of ghoApplication to Self
Procedure OnCreate
String sVersionInfo
Get UtilLowestAllowedMSSQLDRV_And_ClientVersion "6.3.0.13" 10 True True to sVersionInfo
End_Procedure
End_Object