Sage 100

 View Only
Expand all | Collapse all

SQL error

  • 1.  SQL error

    Posted 08-22-2023 18:29

    I'm need of help quickly. I'm working on a Premuim upgrade and getting the following SQL error about database login failed at the workstation level. Works fine on the server printing and previewing. Here is what I have done so far.

    1. Updated the MAS_Reports and MAS_User password under SQL server settings
    2. Turn off the windows firewall at the user workstation level
    3. Created inbound firewall rule for SQL server browser service (port 1434)
    4. Created inbound firewall rule for SQL server instance

    Here is the error I get when trying to preview and print reports.



    ------------------------------
    Shannon Stanley
    Sage 100 Consultant
    Ardent Consulting LLC
    ------------------------------


  • 2.  RE: SQL error

    Posted 08-22-2023 18:39

    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
    ------------------------------



  • 3.  RE: SQL error

    Posted 08-22-2023 18:49

    @Kevin Moyes ?

    1. I ran the repair mode for crystal reports runtime.
    2. 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)
    3. 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
    ------------------------------



  • 4.  RE: SQL error

    Posted 08-22-2023 19:06

    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
    ------------------------------



  • 5.  RE: SQL error

    Posted 08-22-2023 19:47

    @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
    ------------------------------



  • 6.  RE: SQL error

    Posted 08-22-2023 19:48

    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
    ------------------------------



  • 7.  RE: SQL error

    Posted 08-22-2023 21:02

    @Kevin Moyes 

    Here is the error message I'm gettng when I try to run a query at the workstation level.



    ------------------------------
    Shannon Stanley
    Sage 100 Consultant
    Ardent Consulting LLC
    ------------------------------



  • 8.  RE: SQL error

    Posted 08-22-2023 19:50

    Try opening inbound traffic on the server port 1433.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 9.  RE: SQL error

    Posted 08-22-2023 21:03

    @Doug Higgs I tried that with no luck.



    ------------------------------
    Shannon Stanley
    Sage 100 Consultant
    Ardent Consulting LLC
    ------------------------------



  • 10.  RE: SQL error

    Posted 08-22-2023 22:54

    Found the resolution. The IT group didn't have good copy of SQL server configuration manager installed on this server. Once they were able to get the files reinstalled they enabled the TCP/IP under SQL server network configuration. Then workstations were able to communicate to the server. No longer emergency...please move.



    ------------------------------
    Shannon Stanley
    Sage 100 Consultant
    Ardent Consulting LLC
    ------------------------------



  • 11.  RE: SQL error

    Posted 08-23-2023 10:54

    Keyword summary - for future search: 

    Issue: 

     SQL error about database login failed at the workstation level. Works fine on the server printing and previewing. 

    When trying to print or preview from a workstation - the following error message occurs:

    The database login failed. Error in file AR_CustomerListing Unable to connect incorrect log on parameters

    When attempting to connect via DSN from a workstation ( not on the server) receiving

    [DBNETLIB] [ConnectionOpen (Connect().)SQL Server does not exist or access denied

    Resolution:

    SQL Server Configuration Manager not properly installed and TCP/IP not enabled under server network configuration



    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    Moodus, CT
    ------------------------------