SQLRTGetLastError2

InstallShield 2022 ยป InstallScript Language Reference

Project:This information applies to InstallScript projects.

The SQLRTGetLastError2 function returns detailed information about the last error encountered by the SQL run time. SQLRTGetLastError2 also loads the proper SQL error message.

Note:The SQLRTGetLastError2 function uses SQLRT.dll and settings from the SQL settings file; 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

SQLRTGetLastError2( nvErrorCode, svMessage, svTechnology, svConnection, svServer, svDBCatalog );

Parameters

SQLRTGetLastError2 Parameters

Parameter

Description

nvErrorCode

Specifies the SQL error code.

svMessage

Specifies the SQL error message.

svTechnology

Specifies the type of server (such as Microsoft SQL Server or Oracle) that was used.

svConnection

Specifies the SQL error code.

svServer

Specifies the name of the SQL database server.

svDBCatalog

Specifies the name of the SQL database catalog.

Return Values

None

See Also