Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getdate() as Default value for smalldatetime
Message
De
09/05/2006 08:22:12
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01120253
Message ID:
01120291
Vues:
21
This message has been marked as the solution to the initial question of the thread.
That simple, :-) huh?

Thank's.

>>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)
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform