Pass the "don't care" parameters as NULL?CREATE PROCEDURE spHD_Demande_GetList @DEM_id int, @USA_id int, @GRP_SUP_ID int, @PRIORITE_ID intASSELECT * FROM MyTable WHERE (UsaID = @USA_id OR @USA_id IS NULL) AND (DemandID = @DEM_id OR @DEM_id IS NULL) AND (GroupID = @GRP_SUP_ID OR @GRP_SUP_ID IS NULL) AND (PriorityID = @PRIORITE_ID OR @PRIORITE_ID IS NULL)
EDIT: OK so I've read the question now and I answered a different one! But I think the concept will stretch to what you wantKristen