Skip to content

Instantly share code, notes, and snippets.

@fourgeotf
Last active August 19, 2022 16:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fourgeotf/5d9b75ac88a5c04cfa0e6ac5f3c0bc38 to your computer and use it in GitHub Desktop.
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
EXEC sp_change_users_login 'update_one','user_cbase','APPL_CBASE'
ALTER AUTHORIZATION on database::[NOMBASE] to sa
-- 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