Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getdate() as Default value for smalldatetime
Message
From
09/05/2006 03:56:45
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
09/05/2006 03:38:42
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01120253
Message ID:
01120255
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform