This section will demonstrate installing and configuring SQL Server 2008 R2 Express with SP1 x64 on a Windows Server 2008 R2 with SP1 computer. The installation and configuration process is exactly the same for the standard and enterprise editions of SQL Server 2008, SQL Server 2008 R2, and SQL Server 2012. Because SQL Server needs to be configured for Orion NPM further than a simple default installation, I will be installing the edition of SQL Server which includes the management tools.
The installation and configuration process for SQL Server is straightforward. The following is what we will be covering in this section:
Downloading and installing the SQL Server Express software including the SQL Server Management Studio tools
Enabling the SQL Server services using the SQL Server Configuration Manager
Verifying SQL Server authentication settings
Configuring Windows Firewall with Advanced Services to allow traffic to/from SQL Server and the Orion NPM server
SQL Server 2008 R2 Express is available for download for free at http://www.microsoft.com/en-us/download/details.aspx?id=26729.
Using the preceding link, download one of the following files from the SQL Server 2008 R2 Express download page:
Both of these downloads include the SQL Server Management Studio tools needed to configure SQL Server services after the installation has completed.
Before starting the SQL Server installation, there is a little bit of prep work that needs to be done regarding user accounts and administrative rights on the target server on which you are installing the Microsoft SQL Server software.
There is a point in the SQL Server installation wizard where you must define a user account that has administrative rights. This account will be used by Windows to manage the SQL services on the computer. User accounts that are used exclusively by software to perform internal tasks are called service accounts
. Service accounts can be created on the local Windows Server, or they can be an Active Directory domain account. If SQL Server is installed on a member server in an Active Directory domain, create a domain service account and assign it administrative rights to the target Windows Server where you will be installing SQL Server. Otherwise, create a local service account on the target server and assign it administrative rights. All that truly matters is that the service account has administrative rights on the target server.
Note
If you already have a SQL Server 2008 or 2012 instance on your network and do not need to install or set up a new server, please skip to the Verifying SQL Server authentication settings section.
Installing SQL Server 2008 R2 Express
Perform the following steps to set up a new SQL Server 2008 R2 Express installation from scratch.
Note
The installation steps displayed in this section are tailored for SQL Server 2008 R2 Express edition. However, these do apply to the all business editions of SQL Server 2008, SQL Server 2008 R2, and SQL Server 2012 after step 3.
Log into the Windows Server computer with the SQL Server service account.
Double-click the SQLEXPRWT_x64.exe
or SQLEXPRWT_x86.exe
file to launch the SQL Server Express installer.
The installer will search for any prerequisite software needed in order to complete the installation. Click on OK to continue.
After a few moments, the SQL Server Installation Center will appear. Click on the New installation or add features to an existing installation link. SQL Server will automatically install several support files then continue with the installation.
At the License Terms screen, place a check mark next to I accept the license terms and click on Next. The setup wizard will automatically install several prerequisite files needed to continue the installation.
At the Feature Selection screen, place a check mark next to Database Engine Services, SQL Server Replication, and Management Tools – Basic. Click on Next.
On the Instance Configuration screen, choose the Named instance option and type a name for your SQL Server database instance. For this example, I will use the default name SQLExpress. Click on Next to continue.
At the Server Configuration screen, click on the Service Accounts tab. It is recommended to use the same user account for both the SQL Server Database Engine and the SQL Server Browser services. Click on Use the same account for all SQL Server services button and define the user account with administrative rights to this computer.
Click on the Collation tab. Verify that SQL_Latin1_General_CP1_CI_AS is set for the database engine. Click on Next to continue.
At the Database Engine Configuration screen, click on the Account Provisioning tab and configure the following options:
Under Authentication Mode, choose Mixed Mode.
Define a password for the SQL Server System Administrator (SA) account.
Under Specify SQL Server administrators, click on the Add… button and add the service account that has administrative rights. Click on Next to continue.
Note
I recommend not to remove the local administrator account from the SQL Server administrators group. If the SQL service account becomes deactivated or is locked out due to too many invalid login attempts, you may not be able to access the SQL database.
At the Error Reporting
screen, click on Next to start the installation.
The
Installation Progress screen will now be displayed and start the SQL Server installation process. When finished, click on the Close button, then close the SQL Server Installation Center window.
Configuring the SQL Server services
Now that the SQL Server installation has finished, we can start the disabled SQL Server services and verify that the SQL Server authentication is configured correctly for SolarWinds Orion NPM.
The following steps are only for those who installed SQL Server from scratch using the instructions from the previous section. However, if you already have a SQL Server on your network and you will be using it to create a new Orion NPM database in it, use the following steps to verify the permissions and configuration for Orion NPM.
Launch SQL Server Configuration Manager from the Start Menu.
On the left-hand side pane, click on SQL Server Services. Notice the SQL Server Browser and SQL Server Agent (INSTANCE NAME) are both stopped.
Right-click on SQL Server Browser and choose Properties.
The
SQL Server Browser Properties window appears. Click on the Service tab, change the Start Mode from Disabled to Automatic.
Click on Apply, then click on the Log On tab.
Change the option to This Account and enter your SQL Server service account information. Click on Apply, then on the Start button.
Click on OK to close SQL Server Browser Properties.
In the SQL Server Configuration Manager window, expand SQL Server Network Configuration. Click on Protocols for <INSTANCE_NAME>.
Verify that TCP/IP is Enabled. If not, right-click on TCP/IP and change the status to Enabled.
In the view pane on the left-hand side, click on SQL Server Services to highlight it then right-click on SQL Server <INSTANCE_NAME> and choose Restart.
Note
Any type of change made using the SQL Server Configuration Manager will not take effect until the SQL Server service has been restarted.
Close the SQL Server Configuration Manager window.
Note
The SQL Server Agent service is stopped and disabled in this example because the SQL Server Agent cannot be enabled in SQL Server Express editions. This is true even though it appears in the SQL Server Configuration Manager tool. The SQL Server Agent service is not required for SolarWinds Orion NPM to work, so you may ignore it. Do not stop this service if it is enabled and running on Standard, Developer, or Enterprise editions of your SQL Server installation.
Now that the SQL Server services are enabled and configured properly, we can use the SQL Server Management Studio tool to log into the SQL instance and verify that the authentication options are properly configured for SolarWinds Orion NPM.
Verifying SQL Server authentication settings
If you have followed the previous SQL Server installation steps in the previous section, then we have already configured the correct authentication settings. However, it is a good idea to verify that your new SQL Server instance is properly configured even though the SQL installation wizard did all of the work for you. This section will familiarize you in working with the SQL Server Management Studio utility, so I do recommend following the instructions in this section.
Log into your SQL Server using the local administrator account of the Windows Server.
Launch SQL Server Management Studio from the Start Menu.
At the login screen, use the following options:
Server type: Database Engine.
Server Name: Use the syntax Hostname\SQLExpress where SQLExpress is the instance name where you will be creating the Orion NPM database.
Authentication: Windows Authentication.
Click on Connect.
Note
In this example, I am logged into the Windows Server with the SQL service account. This is the best practice for setting up a SQL Server for the first time. An alternative technique is to log into the Windows Server with its local administrator user account.
Under
Object Explorer, right-click on the SQL Server instance name and choose Properties.
The Server Properties window appears. Under Select a page, click on Security. Verify that SQL Server and Windows Authentication mode is selected. Click on Ok to close the Server Properties window.
Under Object Explorer, expand Security, then Logins.
Verify that your SQL Server service account is displayed in the list and has the following permissions:
If the SQL service account is not listed, right-click on Logins in the Object Explorer pane and choose New Login... to add it.
Close the SQL Server Management Studio.
Configuring the Windows Firewall
Now it is time to configure the Windows Firewall on the Windows Server where you will be installing the Orion NPM software as well as on the server running Microsoft SQL Server. If you planned your installation by following SolarWinds' recommendations, you have SQL Server running on one server and Orion NPM installed another.
You must unblock specific TCP/IP ports in the Windows Firewall on each server to allow the SQL Server and Orion NPM software to be able to communicate with each other, as well as receive inbound traffic from nodes when they are polled. If you installed SQL Server and Orion NPM on the same Windows Server, you still must allow specific ports in the Windows Firewall for inbound and outbound polling traffic. This section addresses both of these issues.
If you installed SQL Server on a Windows Server 2008 or 2008 R2 computer, you will use Windows Firewall with Advanced Security from Administrative Tools in the Control Panel to allow specific IP traffic into the server. If you installed SQL Server on a Windows Server 2003 or 2003 R2 computer, use Windows Firewall from the Control panel.
On the SolarWinds Orion NPM server, allow the following ports for inbound traffic:
TCP 80 and 443 for HTTP, HTTPS, and VMware ESX/ESXi
TCP 17777, 17778, and 17779 for Orion NPM Dashboard traffic
UDP 161 and 162 for SNMP
UDP 514 for inbound Syslog messages
Note
Use UDP 162
for inbound SNMP traps if you are using a third-party firewall. For the other ports, follow the preceding chart to allow the TCP/IP traffic for both SQL Server and SolarWinds Orion NPM.
Allow inbound traffic to the following programs on the SQL Server only if Orion NPM and SQL Server is running on two different Windows servers: