Microsoft SQL Server Connection Guide
This guide helps you with any difficulties you may have in getting the correct settings and parameters when connecting Ignition to Microsoft SQL Server, a popular and robust relational database.
Multiple Instances of Database
Microsoft SQL Server supports multiple instances of the database running concurrently on the same computer. Each instance has its own name and set of system and user databases that are not shared between instances. Applications, such as Ignition, can connect to each instance on a computer in much the same way they connect to databases running on different computers. By default, each instance gets assigned a dynamic TCP/IP port on startup that listens for any incoming requests. Since the port is dynamic and the application does not know what the new port is, it must connect using the instance name.
So if the communication is over TCP/IP and the application knows the instance name, how does the application find which port to communicate to?
The answer is the Microsoft SQL Server Browser service. The Microsoft SQL Server Browser program runs as a Windows service and listens for all incoming requests for resources and provides information, such as the TCP/IP port, about each instance installed on the computer. Microsoft SQL Server Browser also contributes to these two actions: browsing a list of available servers and connecting to the correct server instance.
If the Microsoft SQL Server Browser service is not running, you can still connect to SQL Server if you provide the correct port number. For example, you can connect to the default instance of SQL Server with TCP/IP if it is running on port 1433.
Check 1: Make Sure the Database has TCP/IP Enabled
Ignition connects using TCP/IP, therefore make sure your database has TCP/IP enabled.
- Open the SQL Server Configuration Manager from Start > All Programs > Microsoft SQL Server Version # > Configuration Tools > SQL Server Configuration Manager.
The Sql Server Configuration Manager window is displayed.
- To see all the instances set up on that machine, expand SQL Server Network Configuration.
- Find the database (or instance) you plan on using. To the right, all of the protocols the database supports are shown. Find the TCP/IP protocol and select it.

- Make sure the Status next to TCP/IP is Enabled. If not, double-click TCP/IP and choose Yes from the drop-down next to Enabled and click OK.

Check 2: Make Sure Microsoft SQL Server Browser is Running
If you ARE connecting to your database using a NAMED INSTANCE, you must make sure that the Microsoft SQL Server Browser is running. As mentioned earlier, the Microsoft SQL Server Browser translates the instance name to a TCP/IP port in order for Ignition to connect to it.
- Open the SQL Server Configuration Manager from Start > All Programs > Microsoft SQL Server Version # > Configuration Tools > SQL Server Configuration Manager.
- Select the SQL Server Services section.
- On the right, see all of the services installed. One of the services is SQL Server Browser. Make sure this service is in fact running. If the service is not running, right-click and select Start.
Note: The service could be disabled, so you may need to double-click it to enable the service before starting it up.

Check 3: Make Sure There is a Database Created
If you are connecting to an existing SQL Server installation, you only need to know the name of the database and you can skip this step. In newer versions of SQL Server, a fresh installation does not include a database so you must first create a new database.
- Open the SQL Server Management Studio program. This program was an option when you installed SQL Server.
- Log into the Management Studio using either SQL Server Authentication or Windows Authentication.
- In the Object Explorer (on the left), expand the instance folder to find the Databases folder. The instances folder is usually expanded by default.
- Right Click on the Databases folder and select the New Database... option.
- Type in a Database Name.
- Click the OK button in the lower right. You can then expand the Databases folder in the Object Explorer to see the new database. If it doesn't show up right away you can right-click to refresh.
Security - Make your user a db_owner of the new database. - In the Object Explorer, expand to the Security > Logins folder, right click on your username, and select Properties.
- In the User Mapping page click the checkbox next to your new database, then click the db_owner checkbox below.
- Click OK. Now your user has access to a database.