| InstallerContactSite Map |
Advanced Installer User Guide | |||
How to show the available databases from an SQL Server? |
AnswerYou can choose to let the installing user select an SQL Database to connect to, from the available databases on a Microsoft SQL Server. Advanced Installer can automatically connect to the SQL Server using the provided credentials and enumerate all databases the user is allowed to connect to.
Optionally, instead of using a fixed (predefined) instance of SQL Server, you can let the user pick an SQL Server to connect to, from the available Microsoft SQL Servers on the network. You can find detailed instuctions on how to accomplish this, here. A wizard that can assist you can be launched from the "Pre-defined custom actions" menu in the Custom Actions page. Input propertiesThe following input parameters must be specified through Windows Installer properties. These properties can be set statically (from Install Parameters), or dynamically (from the installer UI - associated with Edit Controls, or with SetProperty Initialization/Published Events).
Based on the credentials provided by the installing user (directly or indirectly), Advanced Installer will try to connect to the specified SQL server and discover which of the available databases the user is allowed to connect to. Connection Timeout(Optional) You can specify a connection timeout (in seconds) for the browse operation. The default is 60 seconds. The timeout can be specified through the Windows Installer property SqlConnectionTimeout. You can set this property statically (from Install Parameters), or dynamically (from the installer UI - associated with an Edit Control, or with a SetProperty Initialization/Published Event).
Finally, add an Initialization/Published Event with the following settings:
Database discovery result (output)The following output properties will be used by Advanced Installer to return the discovered available databases:
Sample Project
|

