Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
skiabox
Posting Yak Master
169 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-05 : 04:45:35
|
| can you show us the script used to create them? |
 |
|
|
skiabox
Posting Yak Master
169 Posts |
Posted - 2008-11-05 : 04:53:15
|
| create type Date from dateTimecreate type Time from dateTimecreate rule DateOnlyRule as dateAdd(dd,datediff(dd,0,@DateTime),0) = @DateTimegocreate rule TimeOnlyRule as datediff(dd,0,@DateTime) = 0 goEXEC sp_bindrule 'DateOnlyRule', 'Date'EXEC sp_bindrule 'TimeOnlyRule', 'Time'And of course all this script is running against a specific database |
 |
|
|
skiabox
Posting Yak Master
169 Posts |
Posted - 2008-11-05 : 08:41:08
|
| Any ideas visakh16? |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-11-05 : 11:10:55
|
The time is set to 00:00:00.000 because the datatype is still datetime.But the time part is "stripped" to 12 am. E 12°55'05.63"N 56°04'39.26" |
 |
|
|
|
|
|