| | Error: "The database login failed. Failed to open the connection. Details: [Database Vendor Code: 17]" |
| Cause | - The Database Server field in Sage 100 Settings Utility contains the wrong server name.
- The firewall is blocking the SQL Server port.
- SQL Server Instance doesn’t have TCP\IP Enabled.
- Database Server field in Sage 100 SQL Settings Utilities on Server contains (Local).
|
| Resolution | | [BCB:503:3rd party, customizations, etc:ECB] 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. It may be necessary to enter \ if SQL is installed on a Separate server. Make sure the system isn’t using (Local)\
- Select Apply
- Enter SQL Database Login Credentials
- Select OK
- Select OK on the Test Connection Results screen
- Select Close
- Open Windows Services
- Look for SQL Server Browser
- If working over multiple machines, the 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. It may be necessary to enter \ if SQL is installed on a Separate server. Make sure the system isn’t using (Local)\
- Select Apply.
- Enter SQL Database Login Credentials.
- Select OK.
- Select OK on the Test Connection Results screen.
- Select Close.
If the 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 you get to "Specify the name and Description of this Rule" screen
- Enter the 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 the "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 Browse and 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 the 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.
If you're using the Default SQL Server instance (MSSQLServer) and manually changed the PortID from 1433, use the steps below to resolve issue0 - All users must log out of Sage.
- Log into the Sage 100 Server.
- Browse to the …\MAS90\Home\ folder.
- Make a copy of massql.settings (if you’re hiding known file extensions the file name is "massql".
- Right-click massql.settings, select Open With.
- Choose whether or not to "Always use this app to open .settings files" then select Notepad.
- Click OK.
- Add the PostID after the Server name on the 3rd line.
Example:
@Application CONNECT='Driver={SQL Server Native Client 11.0}'; SERVERNAME,PORTID (Replace SERVERNAME with your SQL Server name and PORTID with the Port number you assigned to the SQL Instance - Save changes.
- Try printing from Sage 100.
TIP: If the issue continues, try updating the PortID in the following Registry Key on ALL Sage 100 workstations
[BCB:155:Chat 100 US:ECB] |
|