InstallShield 2016 » InstallScript Language Reference
Project • This information applies to InstallScript projects.
The SQLRTGetComponentScriptError2 function retrieves the last error while executing a SQL script that is associated with the component. This function takes several parameters (szScriptName, szTechnology, szServer, and szDB) that the SQLRTGetComponentScriptError function does not.
Note • The SQLRTGetComponentScriptError function uses SQLRT.dll; therefore, it can be called only after SQLRTInitialize2 has already been called. To learn more, see Using the SQL Run-Time Functions in InstallScript and InstallScript MSI Projects.
Syntax
SQLRTGetComponentScriptError2( szComponent, szMessage, nvErrorType, nvErrorLine, szScriptName, szTechnology, szServer, szDB );
Parameters
Parameter |
Description |
|||||||||||||||
szComponent |
Specifies the name of the component that is associated with the script. |
|||||||||||||||
szMessage |
Specifies the error message that the database server returned. |
|||||||||||||||
nvErrorType |
Specifies the type of error. Valid types are:
|
|||||||||||||||
nvErrorLine |
Specifies the line number of the error. |
|||||||||||||||
szScriptName |
Specifies the name of the script. |
|||||||||||||||
szTechnology |
Specifies the name of the database server product: Microsoft SQL Server, Oracle, or MySQL. |
|||||||||||||||
szServer |
Specifies the name of the target database server. |
|||||||||||||||
szDB |
Specifies the name of the target database catalog. |
Return Values
Return Value |
Description |
TRUE |
One or more errors occurred. |
FALSE |
No errors occurred. |
See Also
InstallShield 2016 Help LibraryMay 2017 |
Copyright Information | Flexera Software |