Stan Sainte-Rose writes "First, sorry for my ignorance but I m very new in stored procedures.I have several parameters to send to a sproc. Some of them can be empty.When I trace the query, I have something like sp_listproduits 1,5,,, and Iget an errorSo, I add '' between the ,But now, I don't know how to convert the '' into Null when they are sent tothe sproc.Some of them are int, date and varcharThe second problem, is to know how to use a Like statement in a sproc withthe %Example : produits.libelle = IsNull(@motsclefs,produits.libelle) How to do this produits.libelle Like IsNull(@motsclefs,produits.libelle) In my current script in the ASP, I used ... where libelle like '%" & myVar & "%'"Here's my stored proc..Thanks for your help...CREATE PROCEDURE sp_listeproduit ( @Page int, @RecsParPage int, @Categorie int =null , @Commune int =null, @MotsClefs varchar(50) = null )ASSET NOCOUNT ONCreate Table #TempProduits( ID int IDENTITY, Idprod Int, idcat int, libelle varchar(50),)Insert Into #TempProduits (idprod,idcat,,libelle)Select produits.idprod,produits.idcat,produits.libelle From Produits InnerJoin Societes On societes.idsoc=produits.idshopWhere produits.idcat = IsNull(@categorie,produits.idcat) And produits.libelle = IsNull(@motsclefs,produits.libelle) And societes.commune=IsNull(@commune,societes.commune) and idprod=idprodDeclare @FirstRec int, @LastRec intSelect @FirstRec = (@Page-1) * @RecsParPageSelect @LastRec = (@Page * @RecsParPage +1)Select *, MoreRecords = ( Select Count(*) From #TempProduits TI Where TI.ID>=@LastRec )From #TempProduitsWhere ID>@FirstRec and ID<@LastRecSet NoCount OFF"