Last active
August 19, 2022 16:24
-
-
Save fourgeotf/5d9b75ac88a5c04cfa0e6ac5f3c0bc38 to your computer and use it in GitHub Desktop.
[Autorisations sur bases SAGE] Donner les autorisations sur une base sage #sql #sage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_change_users_login 'update_one','user_cbase','APPL_CBASE' | |
ALTER AUTHORIZATION on database::[NOMBASE] to sa | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Pour réinitialiser mot de passe sur les bases 100C V2 et V3 | |
-- mettre PwdStatut à 1 | |
USE [NOMBASE] | |
GO | |
UPDATE [dbo].[F_PROTECTIONCIAL] | |
SET [PROT_PwdStatus] = 1 | |
WHERE cbMarq = 1 -- en général il s'agit de l'administrateur | |
GO | |
UPDATE [dbo].[F_PROTECTIONCPTA] | |
SET [PROT_PwdStatus] = 1 | |
WHERE cbMarq = 1 -- en général il s'agit de l'administrateur | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment