SQLRTGetLastError

InstallShield 2016 » InstallScript Language Reference

Project • This information applies to InstallScript projects.

The SQLRTGetLastError2 function supersedes the SQLRTGetLastError function.

The SQLRTGetLastError function returns the text of the last error encountered by the SQL run time. SQLRTGetLastError also loads the proper SQL error message.

Note • The SQLRTGetLastError 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

SQLRTGetLastError( szError );

Parameters

SQLRTGetLastError Parameters

Parameter

Description

szError

Specifies the SQL error.

Return Values

None

See Also