Accessing Sage 300 CRE Data from the Web - Error [28000][Sage][SQL Engine](31830)Username and Password is required

SUGGESTED

We are accessing Sage 300 CRE data in a web page using the ODBC 32 bit driver we set up as a system dnn (TMBWeb). The dsn points to the correct data folder and is configured for standard descriptions and maximum table segment size. We have a connection string in our configuration file for the website. The connection string is as follows;

<add name="TimberlineODBC" connectionstring="DSN=TMBWeb;Uid=webadmin;pwd=******;" providerName="System.Data.ODBC"/>

We can access the data from Excel or SQL Server Management Studio (import data into table) using the system dsn and credentials. When we try and run a query against the data from the website we get the above error msg. I noticed the error msg says the userid and pwd is required (ie not invalid), which makes me think it is not finding the credentials in the connection string. 

Do you have any idea why this error msg is generated? 

Thank you.  

Parents
  • 0
    SUGGESTED

    If this process works interactively (as a user logged on the local system) and not as the web service, I have a couple of ideas:

    1. Make sure the account the service is running as a Windows user who has NTFS access to the Sage folders.
    2. The website service may be running as x64 process and may not have access to the 32 bit ODBC driver from Sage.  That ODBC driver only works via 32bit access.
    3. If the web service is running on another system, make sure the web process is not running under the local system account as the local system account cannot reach out over the network to access resources on another system on the network.

    You might want to consider deploying the SQL Replicator to push copies of your data over to MS SQL Server which is much easier to access via your typical development tools.

Reply
  • 0
    SUGGESTED

    If this process works interactively (as a user logged on the local system) and not as the web service, I have a couple of ideas:

    1. Make sure the account the service is running as a Windows user who has NTFS access to the Sage folders.
    2. The website service may be running as x64 process and may not have access to the 32 bit ODBC driver from Sage.  That ODBC driver only works via 32bit access.
    3. If the web service is running on another system, make sure the web process is not running under the local system account as the local system account cannot reach out over the network to access resources on another system on the network.

    You might want to consider deploying the SQL Replicator to push copies of your data over to MS SQL Server which is much easier to access via your typical development tools.

Children