Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getdate() as Default value for smalldatetime
Message
 
 
À
09/05/2006 03:38:42
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01120253
Message ID:
01120279
Vues:
23
>I'd like to set the default value for a smalldatetime field as Getdate(), but with zeros in the HH:MM:SS:MS part.
>
DATEADD(dd, DATEDIFF(dd, 0, GETDATE()), 0)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform