SQLRTSetBrowseOption

InstallShield 2016 » InstallScript Language Reference

Project • This information applies to InstallScript projects.

The SQLRTSetBrowseOption function lets you specify whether the SQL Server browse combo box and list box controls show local servers, remote servers, server aliases, or a combination of these types.

Note • If you want to call any built-in SQL-related function before the OnSQLServerInitialize event handler is called in an InstallScript project or the OnSQLLogin event handler is called in an InstallScript MSI project, call the SQLRTInitialize2 function first. To learn more, see Using the SQL Run-Time Functions in InstallScript and InstallScript MSI Projects.

Syntax

SQLRTSetBrowseOption( nBrowseOption );

Parameters

SQLRTSetBrowseOption Parameters

Parameter

Description

nBrowseOption

Pass one or more of the following predefined constants in this parameter:

SQL_BROWSE_ALL (0)—Show all of the available SQL Servers. Specifying this constant has the same effect as selecting the SQL_BROWSE_LOCAL, SQL_BROWSE_REMOTE, and SQL_BROWSE_ALIAS constants.
SQL_BROWSE_LOCAL (1)—Show local SQL Servers.
SQL_BROWSE_REMOTE (2)—Show remote SQL Servers.
SQL_BROWSE_ALIAS (4)—Show SQL Server aliases.

You can specify multiple browse options by combining constants with the bitwise OR operator (|).

Return Values

None

See Also