1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
   | CREATE PROCEDURE maProcedure
	@_txtBxIdRh [type]
	, @_txtBxCivilite [type]
	, @_txtBxNom [type]
	, @_txtBxPrenom [type]
	, @_acces [type]
	, @_txtBxIdRh [type]
	, @_txtBxId_Fonction [type]
AS
BEGIN
	SET NOCOUNT ON
 
	UPDATE		dbo.Agent
	SET		id_geode = @_txtBxIdRh
			, civilite = @_txtBxCivilite
			, nom = @_txtBxNom
			, prenom = @_txtBxPrenom
			, id_fonction = F.id_fonction
			, type_acces = @_acces
	FROM		dbo.Agent AS A
	INNER JOIN	dbo.Fonction AS F
				ON A.id_fonction = F.id_fonction
	WHERE		A.id_geode = @_txtBxIdRh
	AND		F.intitule_fonction = @_txtBxId_Fonction
END  |