Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to grant a user access to a test company in Microsoft Dynamics GP: "The user could not be added to one or more databases"


View products that this article applies to.

Symptoms

When you try to grant a user access to a test company in Microsoft Dynamics GP or in Microsoft Business Solutions – Great Plains, you receive the following error message:
The user could not be added to one or more databases.

Additionally, if debugging is enabled in the Dex.ini file, the following information is logged in the Dexsql.log file that is generated:
[Microsoft][ODBC SQL Server Driver][SQL Server]User, group, or role 'XXXX' already exists in the current database.*/

↑ Back to the top


Cause

This problem occurs if the user already exists in the test company database.

↑ Back to the top


Resolution

To resolve this problem, follow these steps:

  1. Delete the user from the test company database. To do this, follow the appropriate steps.

    In SQL Server Enterprise Manager, follow these steps:
    1. Click Start, point to All Programs, point to Microsoft SQL Server, and then click Enterprise Manager.
    2. Expand Microsoft SQL Servers, expand SQL Server Group, and then expand the instance of Microsoft SQL Server.
    3. Expand Databases, expand the test company database, and then click Users.
    4. In the right Navigation pane, right-click the user in question, and then click Delete.
    5. Click Yes when you are prompted to delete the user.
    In SQL Server Management Studio in SQL Server 2005 or in SQL Server 2008, follow these steps:
    1. Click Start, point to All Programs, point to Microsoft SQL Server 2005, or point to Microsoft SQL Server 2008, and then click SQL Server Management Studio.
    2. In the Server name box, type the name of the instance of SQL Server.
    3. In the Authentication list, click SQL Authentication.
    4. In the User name box, type sa.
    5. In the Password box, type the password for the sa user, and then click Connect.
    6. In the Object Explorer area, expand Databases, expand the test company database, expand Security, and then expand Users.
    7. Right-click the user in question, and then click Delete.
    8. Verify that the information is correct, and then click OK.
  2. Grant access to the test company for the user. To do this, follow the appropriate steps.

    For Microsoft Business Solutions – Great Plains 8.0 and for Microsoft Dynamics GP 9.0, follow these steps:
    1. Start Microsoft Business Solutions – Great Plains 8.0 or Microsoft Dynamics GP 9.0.

    2. Log on as the sa user.

    3. On the Tools menu, point to Setup, point to System, and then click User Access.

    4. Click the user in question, click to select the Access check box, and then click OK to grant access to the test company that has live data.
    For Microsoft Dynamics GP 2010 and Microsoft Dynamics GP 10.0, follow these steps:
    1. Start Microsoft Dynamics GP 10.0 or Microsoft Dynamics GP 2010.
    2. Log on as the sa user.

    3. On the Microsoft Dynamics GP menu, point to Tools, point to Setup, point to System, and then click User Access.
    4. Click the user in question, click to select the Access check box, and then click OK to grant access to the test company that has live data.

↑ Back to the top


More Information

When a user is granted access to a test company, the user is saved to the SYSUSERS table in the company database. Then, a record of this event is saved to the SY60100 table in the DYNAMICS database.

When the live company database is backed up, the SYSUSERS table is saved together with all the other tables in the live company database. This backup is then restored into the test company. Additionally, the SYSUSERS table is restored into the test company together with all the other tables in the backup.

When you try to grant the user access to the test company, Microsoft Dynamics GP tries to add the user to the SYSUSERS table. In this situation, you receive the error message that is mentioned in the "Symptoms" section because the user already exists in this table.

↑ Back to the top


References

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

871973 How to set up a test company that has a copy of live company data by using SQL Server 7.0, SQL Server 2000, or SQL Server 2005

↑ Back to the top


Keywords: kbentirenet, kbexpertiseinter, kbexpertiseadvanced, kbmbspartner, kbmbsmigrate, kbprb, kb

↑ Back to the top

Article Info
Article ID : 929601
Revision : 1
Created on : 1/7/2017
Published on : 7/14/2012
Exists online : False
Views : 182