Training
Module
Create new companies in Business Central - Training
Learn how to create and set up new companies efficiently in Business Central.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article helps you resolve the problem that occurs when a user already exists in the company database.
Applies to: Microsoft Dynamics GP
Original KB number: 929601
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.*/
This problem occurs if the user already exists in the test company database.
To resolve this problem, follow these steps:
Delete the user from the test company database. To do this, follow the appropriate steps.
In SQL Server Enterprise Manager, follow these steps:
In SQL Server Management Studio in SQL Server 2005 or in SQL Server 2008, follow these steps:
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:
Start Microsoft Business Solutions - Great Plains 8.0 or Microsoft Dynamics GP 9.0.
Log on as the sa user.
On the Tools menu, point to Setup, point to System, and then click User Access.
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:
Start Microsoft Dynamics GP 10.0 or Microsoft Dynamics GP 2010.
Log on as the sa user.
On the Microsoft Dynamics GP menu, point to Tools, point to Setup, point to System, and then click User Access.
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.
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.
Training
Module
Create new companies in Business Central - Training
Learn how to create and set up new companies efficiently in Business Central.
Documentation
Create a Dexsql.log file to troubleshoot - Dynamics GP
Describes how to create a Dexsql.log file that can help you troubleshoot error messages.
Error message in Microsoft Dynamics GP - Dynamics GP
This article provides a resolution for the problem where you receive the error message (Stored Procedure XXXX returned the following results).
A Get/Change First Operation failed - Dynamics GP
Provides a solution to an error that occurs when you sign into Microsoft Dynamics GP after you've migrated to Microsoft SQL Server 2005 from Microsoft SQL Server 2000 with a different server name.