Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getdate() as Default value for smalldatetime
Message
From
09/05/2006 08:22:12
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01120253
Message ID:
01120291
Views:
13
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform