May 8, 2012 at 4:21 am
HI
how can i set a null value when declaring a parameter
example
CREATE PROCEDURE dbo.GestionStatutDossier
-- Add the parameters for the stored procedure here
@StaId int NULL,
@DosID uniqueidentifier,
@staDate datetime,
@staBL nvarchar (50),
@staCRprod nvarchar (50)
AS
it always send back an error
thkx
May 8, 2012 at 4:24 am
you need to set the variable = null
CREATE PROCEDURE dbo.GestionStatutDossier
-- Add the parameters for the stored procedure here
@StaId int = NULL,
@DosID uniqueidentifier,
@staDate datetime,
@staBL nvarchar (50),
@staCRprod nvarchar (50)
AS
May 8, 2012 at 4:56 am
thanks!!
It OK
May 8, 2012 at 5:04 am
marclas (5/8/2012)
HIhow can i set a null value when declaring a parameter
example
CREATE PROCEDURE dbo.GestionStatutDossier
-- Add the parameters for the stored procedure here
@StaId int NULL,
@DosID uniqueidentifier,
@staDate datetime,
@staBL nvarchar (50),
@staCRprod nvarchar (50)
AS
it always send back an error
thkx
+1
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply