Here is the error message I'm gettng when I try to run a query at the workstation level.
Original Message:
Sent: 08-22-2023 19:48
From: Kevin Moyes
Subject: SQL error
Test a SQL DSN / Excel query to make sure you have basic connectivity with the SQL instance. If that doesn't work, it isn't a Sage problem.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
------------------------------
Original Message:
Sent: 08-22-2023 19:46
From: Shannon Stanley
Subject: SQL error
@Kevin Moyes I checked and it pointed to the correct database server. I tried the additional steps in the article and confirmed everything is in place with the rules with the firewall. It's still failing to print and preview the reports from the workstation level. I don't know if this makes a different but because this is a viritual server should I have the IT group reboot this server?
------------------------------
Shannon Stanley
Sage 100 Consultant
Ardent Consulting LLC
Original Message:
Sent: 08-22-2023 19:06
From: Kevin Moyes
Subject: SQL error
For #3, I mean in the Sage SQL settings utility.

When printing, Sage passes a connection string in memory to the workstation's print engine, which then accesses SQL data using those credentials.
If you can print from Sage 100 on the server, the MAS_Reports password is fine... and you are probably dealing with a workstation connection issue.
KB
https://us-kb.sage.com/portal/app/portlets/results/viewsolution.jsp?solutionid=224924150049613&page=1&position=1&q=the%20database%20login%20failed
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
Original Message:
Sent: 08-22-2023 18:48
From: Shannon Stanley
Subject: SQL error
@Kevin Moyes ?
- I ran the repair mode for crystal reports runtime.
- In the Sage SQL settings, make sure you are using the full and proper instance name, not localhost\instancename, which won't work from anywhere other than the Sage server. (When I updated the passwords I made sure I used the SA login to update)
- Try the ipaddress\instancename if the servername\instancename doesn't work. Any values with special characters like a dash, wrap in square brackets: [server-name]\[instance-name] - do you mean change it to IP address when I uninstall and reinstall workstation setup?
The suggestion 3 is the only thing I haven't tried yet. Still doesn't work after suggestion 1 and 2.
------------------------------
Shannon Stanley
Sage 100 Consultant
Ardent Consulting LLC
Original Message:
Sent: 08-22-2023 18:39
From: Kevin Moyes
Subject: SQL error
Workstation control panel: repair the two Crystal Reports run-times.

SQL instance firewall should be a program exception, not port (if you have more than one SQL instance on the machine... otherwise port 1433 should work).
In the Sage SQL settings, make sure you are using the full and proper instance name, not localhost\instancename, which won't work from anywhere other than the Sage server.
Try the ipaddress\instancename if the servername\instancename doesn't work. Any values with special characters like a dash, wrap in square brackets: [server-name]\[instance-name]
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON