“The database login failed. Failed to open the connection. Details: [Database Vendor Code: 17]”
Description
Error: “The database login failed. Failed to open the connection. Details: [Database Vendor Code: 17]” when opening Sage 100 Premium client.
or error when trying to preview/print Crystal Reports: “Error: The database login failed. Error in File SY_SystemConfigListing 2208_3108_{B73434B3-C4B3-457E-A175-15F1106E802C}.rpt: Unable to connect: incorrect log on parameters.”
Cause
- The Database Server field in Sage 100 Settings Utility contain the wrong server name.
- Firewall blocking SQL Server port
- SQL Server Instance does not have TCP\IP Enabled
- Database Server field in Sage 100 SQL Settings Utilities on Server contains (Local)
Resolution
For Sage 100 2013 and higher
- In Windows, select Start, All Programs, Sage, Sage 100 ERP 2013 , Sage 100 Premium ERP 2013 SQL Settings Utility.
- Select EDIT.
- Select the Database Server field
- Enter the SQL Server name
- Note: it may be necessary to enter <Server Name>\<Instance Name> if SQL is installed on a Separate server. Make sure the system is not using (Local)\<Instance Name>
- Select Apply
- Enter SQL Database Login Credentials
- Select OK
- Select OK on Test Connection Results screen
- Select Close
- Open Windows Services
- Look for SQL Server Browser
- If working over multiple machines SQL Server Browser must be running all the time
- Right click and select Start if needed.
For Sage 100 (formerly Sage MAS 200 SQL) version 4.50:
- In Windows, select Start, All Programs, Sage, Sage ERP MAS 200 SQL, Sage ERP MAS 200 SQL Settings Utility.
- Select EDIT.
- Select the Database Server field.
- Enter the SQL Server Name.
- Note: it may be necessary to enter <Server Name>\<Instance Name> if SQL is installed on a Separate server. Make sure the system is not using (Local)\<Instance Name>
- Select Apply.
- Enter SQL Database Login Credentials.
- Select OK
- Select OK on Test Connection Results screen.
- Select Close
If error continues add a Firewall Inbound Rule for the SQL Server service:
Open port in Windows firewall for TCP Access
- Open Administrative Tools, Windows Firewall with Advanced Security console
- In the left pane of the console, select Inbound Rules
- Right-click select New Rule
- Select Port and click Next
- In the Protocol and Ports dialog box, select TCP.
- Select Specific Port Numbers and then type the port numbers: 1433, 1434
- Select Next until get to ‘Specify the name and Description of this Rule’ screen
- Enter name for Inbound Rule (for instance SQL – TCP)
- Select Finish
Open port in Windows firewall for UDP Access
- Open Administrative Tools, Windows Firewall with Advanced Security console
- In the left pane of the console, select Inbound Rules
- Right-click select New Rule
- Select Port and click Next
- In the Protocol and Ports dialog box, select UDP.
- Select Specific Port Numbers and then type the port numbers: 1434
- Select Next until get to ‘Specify the name and Description of this Rule’ screen
- Enter name for Inbound Rule (for instance SQL – UDP)
- Select Finish
Open access to SQL Server when using dynamic ports
- Open Administrative Tools, Windows Firewall with Advanced Security console
- In the left pane of the console, select Inbound Rules
- Right-click select New Rule
- Select Program and click Next
- In the Program dialog box, select ‘This program path.’ Select band navigate to Instance of SQL Server that you want to access through firewall, and then click Open. (Example: C:\Program Files\Microsoft SQL Server\MSSQL11\Instance_Name\MSSQL\Binn\Sqlserv,exe)
- Select Next until get to ‘Specify the name and Description of this Rule’ screen
- Enter name for Inbound Rule (for instance SQL – Dynamic)
- Select Finish
If error continues, verify TCP/IP is enabled for Sage 100 SQL Server Instance
- Open Start, All Program (or Apps), Microsoft SQL Server YYYY (YYYY =
Year), Configuration Tools, SQL Server Configuration Manager - Expand SQL Server Network Configuration
- Select the Protocols for the SQL Instance for Sage 100
- Example: Protocols for SAGE100SQL
- If TCP/IP status is Disabled, right-click TCP/IP and select Enable
- To save changes, you’ll need to Stop then Start the Sage 100 SQL Server Instance inside SQL Server Configuration Manager using the following steps:
- Select SQL Server Services under SQL Server Configuration Manager (Local)
- Right-click the SQL Server Instance for Sage 100 (Example: SQL Server
(Instance_Name)) and select STOP - Right-click the SQL Server Instance for Sage 100 and select START
- Exit SQL Server Configuration Manager
Support
If necessary, seek the assistance of Acute Data Systems to help provide assistance with this process.