:cry: Soit la procédure stockée suivante :
Et ben il me retourne chaque fois -1..... je comprends pas pourquoi !!!Code:
1
2
3
4
5
6
7
8
9
10
11
12 Create Procedure dbo.checkLivreEmp { @idUser int, @res int OUTPUT } AS SELECT @res = COUNT (*) FROM Table1 WHERE id = @idUser AND IdStatut <> 5 RETURN @res