Hi all,
I understand that the supported method to copy databases between non-production environments is to do back up/restore and then database synch as in 2012. Both of these environments are DEV and TEST with local SQL db and not on Azure. After I complete this step I will tackle the Azure UAT environment.
However, are there any environmental parameters that need to be recorded or built into an update script?
Thanks
Generally speaking, on any D365 Finance and Operations environment, the user which will remain always enabled is 'Admin'. This is not a user with System Administrator privileges in D365, but this a reserved user by D365 to be assigned to the environment administrator by default (or any other user which should be the defacto Admin).
Now, when you copy a database from source, the source copies over all the information including the 'Admin' user. You should update the 'Admin' on the restored copy to the actual 'Admin' on the environment. To do this run the following script:
DECLARE @SID NVARCHAR(124)
DECLARE @NetworkAlias NVARCHAR(255)
SELECT
@SID = [SID]
,@NetworkAlias = NetworkAlias
FROM [AxDB_Orig].[dbo].[UserInfo] WHERE Id = 'Admin'
UPDATE [AxDB].[dbo].[UserInfo] SET
[SID] = @SID
,NetworkAlias = @NetworkAlias
WHERE Id = 'Admin'
In the above script [AxDB_Orig] denotes the original database that was a working copy before restore.
Hi Sukrut,
Spoke too soon. after I completed the database synchronization I am now able to get into the application.
I went through that document but my db is local to local. After the refresh I now receive:
"You are not authorized to login with your current credentials. You will be redirected to the login page in a few seconds"
I am logging on with my tenant account and not the admin account. Does anything have to get updated in the user info table?
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156