2026-11-27

Sage 100: The Data Login Failed to Open the Connection — Database Vendor Code 17

"The data login failed to open the connection. Details: Database Vendor Code 17" on Sage 100 Premium means Sage cannot reach its SQL Server. Fix the server name in the SQL Settings Utility, then the firewall and TCP/IP, in that order.

Full error text:

The data login failed to open the connection. Details: Database Vendor Code 17

You see it when opening the Sage 100 Premium client — Premium is the SQL Server edition, and Vendor Code 17 is SQL Server's way of saying the server Sage was told to connect to is not there under that name. The same failure appears inside Crystal Reports when previewing or printing, dressed up as "The database login failed… Unable to connect: incorrect log on parameters." In almost every case the SQL Server itself is fine; what is wrong is the name Sage is using to find it, or the network path to it. This is Sage's own Knowledgebase resolution, in its documented order.

The fix

  1. Open the SQL Settings Utility: Start > All Programs > Sage > Sage 100 Premium > Sage 100 Premium SQL Settings Utility. (On version 4.50 it is Sage ERP MAS 200 SQL > Sage ERP MAS 200 SQL Settings Utility.)
  2. Click EDIT.
  3. Select the Database Server field and enter the correct SQL Server name. If SQL Server runs as a named instance — or on a separate server — enter it as SERVERNAME\INSTANCENAME. One trap matters more than any other here: make sure the field does not contain (Local) (as in (Local)\InstanceName). "(Local)" means "this machine" to whatever reads it, so every workstation that reads the server's setting goes looking for SQL Server on itself.
  4. Click Apply.
  5. Enter the SQL database login credentials and click OK.
  6. Click OK on the Test Connection Results screen, then Close.
  7. Also confirm the SQL Server Browser service is present and running in Windows Services — named-instance resolution depends on it.

If the test connection now succeeds, you are done. If the error continues, work the two network causes below in order — do not skip ahead.

Causes / why this happens

Sage documents four causes, and they stack: a wrong server name in the Settings Utility is the headline cause, but a corrected name still fails if the firewall blocks the SQL ports or the instance is not listening on TCP/IP at all. That is why the resolution is a sequence, not a single step. Typical real-world triggers: the SQL instance was renamed or moved, Sage was pointed at the server during an install done on the server console (where "(Local)" genuinely worked — until a workstation tried), or a new server's firewall was never opened for SQL.

If the error continues: firewall

On the SQL Server host, open Windows Firewall with Advanced Security and add three inbound rules:

  1. TCP port rule: Inbound Rules > New Rule > Port > TCP > Specific local ports 1433, 1434 > allow through the wizard and name it (for example, "SQL - TCP").
  2. UDP port rule: New Rule > Port > UDP > Specific local ports 1434 > name it (for example, "SQL - UDP"). UDP 1434 is how clients find named instances via the Browser service.
  3. Program rule (only if SQL Server uses dynamic ports): New Rule > Program > This program path > browse to the instance's sqlservr.exe — path pattern C:\Program Files\Microsoft SQL Server\MSSQL<version>.<InstanceName>\MSSQL\Binn\sqlservr.exe — and allow it.

If the error still continues: TCP/IP

  1. On the SQL Server host, open SQL Server Configuration Manager (Start > Microsoft SQL Server > Configuration Tools).
  2. Expand SQL Server Network Configuration and select Protocols for <your Sage 100 instance>.
  3. If TCP/IP shows Disabled, right-click it and choose Enable.
  4. Stop and restart the SQL Server instance service for the change to take effect, then test the Sage connection again.

Per-context variants

Only in Crystal Reports: if the Premium client opens but reports fail with the "database login failed / incorrect log on parameters" variant, the client connection is working and the report's stored connection is stale — but run the Settings Utility check first anyway; Sage lists the report symptom under this same error and the same causes. Only if the server name, firewall, and TCP/IP all check out should you open the report in Crystal Designer and re-point its data source (Database > Set Datasource Location) at the current SOTAMAS90 connection.

After a server move or rename: expect to do all three stages. A moved instance usually means a new name in the utility, a fresh firewall, and an instance that has never had TCP/IP enabled — all four documented causes in one project.

What doesn't work

  • Re-entering the Sage password. The error is not a credentials rejection — it is a failure to open the connection at all. The credentials prompt in the Settings Utility matters only after the server name is right and the test connection can run.
  • Leaving "(Local)" in place because it works on the server. It works on the server because, there, it is true. It is guaranteed to fail from every workstation.
  • Opening only port 1433. Named instances are located over UDP 1434 and may listen on a dynamic TCP port; 1433 alone leaves both of those paths closed.

Affected versions

Sage 100 Premium (SQL edition) only — procedures are documented for version 4.50 and for Sage 100 2013 and higher. Sage 100 Standard and Advanced use ProvideX files and cannot produce this error.

Prevention / best practice

  • After any SQL Server install, move, or rename, open the SQL Settings Utility and run its test connection before the first user calls.
  • Record the exact SERVERNAME\INSTANCENAME string in your install documentation — most Vendor Code 17 cases are a name nobody wrote down.
  • Keep the three firewall rules and the TCP/IP setting in your server build checklist, so a replacement server is born correct.

Related help

Still stuck? Send us a screenshot of the error, we will diagnose it for free.

Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.

Ready to Optimize Your Sage ERP?

Speak with a CPA-led Sage consultant. Free initial consultation — English or Chinese.

Get a Free Consultation