web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / AX Dev Help / Microsoft Dynamics AX - Ca...

Microsoft Dynamics AX - Cannot open database "AXDBRain" requested by the login

Gaurav Pandey Profile Picture Gaurav Pandey 960


While doing some development in new Microsoft Dynamics AX , while adding a field in a Data entity ,during synchronization I got below error :


Error        Cannot open database "AXDBRain" requested by the login. The login failed.
Login failed for user 'xxxxxxx-xxx\xxxxx'. when try to connect to business database with provided configuration.  
 


This error was misleading  , because AXDBRain is not the correct DB which my AX is connected with.
        
Solution :

Go to C:\Users\userid\Documents\Visual Studio 2015\Settings\DefaultConfig.XML
and change the following :

<BusinessDatabaseName>CorrectDBname</BusinessDatabaseName> 

Save the file.

Restart VS and try to do Sync again , hopefully this will help to sync.
 

This was originally posted here.

Comments

*This post is locked for comments