Hello,
A company that I am helping with a Dynamics AX implementation wants all of their user IDs (in the UserInfo table and others) to match their EmplIDs.
The company has updated the user relations form (or will before the time comes) to provide a link to what the user ID is supposed to be changed to. So, making the connection is easy.
Currently, since the UserInfo Table/Form and UserID Datatype are invisible (or locked down) in the AoT, I cannot use the cross reference tool to find out all of the related tables / fields. So, I have resorted to the information schema views in the database. I have a query that looks at the columns view that restricts results based on the following:
- DATA_TYPE = 'nvarchar'
- MAXIMUM_LENGTH=5
- TABLE_NAME NOT LIKE 'DEL%' or 'sv%'
- COLUMN_NAME LIKE 'ID', 'USERID', '%BY'
I have ran the script and of course it brings back many tables. Updating these tables with the new UserID and then running the other query that updates the UserInfo and SysCompanyUserInfo tables with the new UserID through MSSQL does not seem to cause any issues. However I want to ensure I am getting all of the tables to prevent possible future issues.
Is there any more efficient/accurate way to determine every table that has a UserID datatype field in it? Preferably through Dynamics, so that any code that is against them is taken into account.
*This post is locked for comments
I have the same question (0)