Enable user when data refresh done through sql

Today we have a requirement to enable the user when there is a database refresh happens.

So instead of going 1 by 1 to enable we can run the below query to enable the user.



UPDATE USERINFO SET ENABLE = 1

WHERE NETWORKALIAS LIKE '%pelsis.com'

OR NETWORKALIAS LIKE '%in.ibm.com'

OR NETWORKALIAS LIKE '%ibm.com'


Using this it will enable the user in1 shots 

Comments

Popular posts from this blog

Customization on Sales invoice Report in D365 F&O

75) COC - Create a coc of the table modified method

46) D365 FO: SHAREPOINT FILE UPLOAD USING X++