Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass default value as date?
Message
De
02/02/2001 10:47:02
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00471760
Message ID:
00471766
Vues:
17
Default the parameter to NULL and then check later in the procedure:

CREATE PROCEDURE spCreditPointCalc
@IDUser integer = 0,
@DateNow datetime = NULL
AS

if @datenow is null
set @datenow = GETDATE()


-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform