Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getdate() as Default value for smalldatetime
Message
De
09/05/2006 03:56:45
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
 
À
09/05/2006 03:38:42
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01120253
Message ID:
01120255
Vues:
16
Far from perfect but this should work -

select cast(convert(varchar,getdate(),103) as datetime)

Regards

Jon

>I'd like to set the default value for a smalldatetime field as Getdate(), but with zeros in the HH:MM:SS:MS part.
>
>How to do?
>
>TIA & BR
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform