Different ways of adding SQL Server instances in a SQL manage instance software

Applies to

ApexSQL Manage

Summary

This article describes different ways of adding new SQL Server instances in the SQL manage instance application.

Description

The following article will demonstrate all ways the connection between the software and a SQL instance can be made.

These different approaches distinguish between each other by the number of instances that could be added at once:

  • Only one instance at a time or
  • Multiple ones with the latter depending on the number of instances that are discovered in one search that is executed across the network

This guide will cover all approaches mentioned above in detail.

Add SQL Server manually

To initialize this process, head over to the Inventory tab and from the Add drop-down menu choose the Add manually option:

Add SQL instance manually

This action will open the Connect to SQL Server window, where the desired SQL Server instance from the Server drop-down list should be selected:

Connect to SQL Server window in the SQL manage instance tool

In addition to this, there is one more way of adding SQL instances within the same window. To do so, click the Browse for SQL Server button and choose either Local or Network tab (SQL instances discovered across the network). Once the selection is made, click the OK button:

Choose local or remote SQL instances

From the Authentication drop-down list, choose the preferred Database Engine authentication mode:

  • Windows – this mode will make a connection through a Windows user account where SQL Server validates the account name and password using the Windows principal token in the operating system
  • SQL Server authentication – when this mode is being used, the logins, both the username and the password, are created by using SQL Server instance and are stored in it. Every time this type of connection is used, login and password credentials must be provided

Choose SQL Server Authentication mode

Additionally, a few more options can be tweaked regarding authentication. Click the Set connection options button on the right. Once in the Connection options window, configure the following:

  • Connection timeout – specifies the time limit, measured in seconds, under which the connection to the specified SQL instance must be made; otherwise, the exception will be thrown
  • Execution timeout – specifies the time limit, again measured in seconds, under which some request or operation needs to be executed, or the exception will be thrown
  • Encrypt connection – toggle that secures the connection by using SQL Server encryption

Once the mentioned settings are configured, click the OK button:

Set SQL Server connection options

With selected SQL Server instance and its authentication mode, click the OK button to add it with SQL manage instance tool:

Connect o to SQL Server

In the next step, assign a new instance to a displayed folder in the drop-down list or create a new folder for the same purpose by clicking the Add new folder button:

Select folder for new SQL instance

Now, the added instance can be found under the newly created folder in the Server panel:

Server panel in the SQL manage instance tool

Add SQL Servers discovered on a network

To achieve this endeavor, please follow the How to discover SQL instances, SSRS, SSAS and SSIS services across the network in-depth guide.

Add SQL Server instances from the last scan

Once the scan is performed, and SQL instances are added with the guidance obtained from the above-mentioned article, this last executed scan can be easily found by clicking the Add drop-down menu and choosing the Add from last scan option:

Add SQL instances from the last scan

This action will open the Register window, where all discovered instances from the last scan are displayed. Check desired instances and afterward check the Add discovered SQL Servers to option to allocate selected instances to a folder from the drop-down list:

Register window in the SQL manage instance tool

Click the OK button to confirm the selection:

Click OK to add SQL instances

Now, chosen instances are listed under the Development folder in the Server panel:

Server panel in the SQL manage instance tool

Add SQL Server instances automatically

To add SQL instances automatically and unintended, head over to the Schedules tab and from the Create drop-down menu, select the Server discovery option:

Schedules tab in the ApexSQL Manage

In the Schedule tab of the Server discovery window, provide a name for the schedule and set the desired execution time:

Schedule tab in the Server discovery window

From the Scan tab, set the scan mode. For the purpose of this guide, the IP mode is chosen, and the IP scan range is provided. Additionally, the SSRP scan method, SQL Server Resolution Protocol, is checked:

Scan tab in the Server discovery window

In the Notification tab, check the Discovery notify events options and provide email these notifications will reach:

Notify events when SQL Server instances are discovered

Under the Summary tab, all chosen parameters are gathered in one place. Click the OK button to confirm schedule creation:

Summary tab in the Server discovery window

Click the Finish button to close the Running tasks completed window:

Running tasks window in the SQL manage instance tool

The created schedule is shown under the Schedules tab and will be executed based on the previously configured time :

Main grid display in the Schedules tab

Once executed, the notification will arrive on the provided email account:

Scan email notification in the SQL manage instance tool

Add SQL Server instances with quick action option

The last option of adding SQL instances within the SQL manage instance tool is by using the quick scan option. To achieve this feat, the first quick actions regarding the Server discovery needs to be configured. This is achievable by accessing the Quick settings button from the Configuration tab:

Configuration tab in ApexSQL Manage

In the Quick action settings window, configure the scan mode, choose scan method(s) and click the OK button to save settings:

Quick action settings in the SQL manage instance tool

Now, every time the Scan button is clicked under the Quick actions category of the Home tab, the scan will be performed based on the previously configured settings:

Quick Scan option in ApexSQL Manage