How to get SQL Server 2005 to work with a Niagara G3 Enterprise Network Server.
TAC I/A Series
- Niagara G3 Enterprise Network Server
- SQL Server 2005
The SQL Server need to enable TCP/IP and open TCP port number 1433.
"...To get SQL Server 2005 Express (the free edition) configured properly simply follow these steps...
- Download SQL Server 2005 Express Edition here.
- Download the SQL Server Management Studio Express from the above URL (note: advanced services are not needed). This is optional but it does provide a useful interface for running SQL queries if desired.
- Before installing SQL Server 2005 Express Edition, ensure the user is logged on with administrative access to the PC and all older versions of SQL Server are uninstalled.
- When installing SQL Server 2005, ensure mixed mode is enabled and the give 'sa' user a strong password.
- Once installed, open the SQL Server Configuration Manager ('Start', 'Programs', 'Microsoft SQL Server 2005', 'Configuration Tools', 'SQL Server Configuration Manager').
- Once the Configuration Manager has been opened, enable TCP/IP so G3 can connect to SQL Server (by default this is switched off).
- Using the tree, navigate to 'SQL Server 2005 Network Configuration' and then 'Protocols for SQLEXPRESS'.
- Right click TCP/IP and select 'Properties'. The TCP/IP Properties window should now appear.
- On the first tab labeled 'Protocol', ensure the 'Enabled' property is set to 'Yes'.
- Go to the second tab labeled 'IP Addresses'.
- In the section labeled 'IPAll' delete any entry in 'IP Dynamic Ports' and enter the value 1433 in 'TCP Port'. Once completed click ok. Note that the default port is a 5-digit number that will NOT work. It must be removed.
- Restart the SQL Server Express service. If it can't be located easily in Windows, then reboot the computer.
- Niagara G3 should now be able to connect to SQL Server 2005. Before attempting to connect, ensure all firewalls are properly configured so the connection can be made.
- If running the Enterprise Network Server on a different computer, then open up a Windows command prompt on the ENS computer and type 'telnet yourIPAddressGoesHere 1433'. If the command prompt window goes blank then connections can be made to this IP address and port number.
- Open Workbench and run up the desired station.
- Ensure the station is licensed to use the rdbSqlServer feature.
- Add the 'RdbmsNetwork' component to the server station.
- Add the 'SqlServerDatabase' component.
- Configure the properties for the 'SqlServerDatabase' component.
- Type in the IP address, port number (1433 in this example), user name and password for the connection.
- Ping the 'SqlServerDatabase' and ensure its status is 'ok'.
- Export historical data to the Sql Server database by adding a new 'SqlServerHistoryExport' component and setting up its 'History id' property to point to an existing history already in the station".
Ensure Niagara G3 version 3.0.100 and above is used in order for the connection to work.