| Author |
Message |
ralindblom
Joined: 19 Jun 2007 Posts: 3
|
Posted: Fri Aug 31, 2012 3:07 pm Post subject: Comparing a DATETIME field and DATE field |
|
|
| Is there any way of comparing a DATETIME field and DATE field? The time field has 00:00:00.000 so I really am just looking to compare the date portion of both fields. |
|
| Back to top |
|
 |
Manfred.Castro
Joined: 23 Apr 2012 Posts: 127
|
|
| Back to top |
|
 |
ralindblom
Joined: 19 Jun 2007 Posts: 3
|
Posted: Fri Aug 31, 2012 6:54 pm Post subject: |
|
|
| While the compare happens every items comes back as a difference. I would like to have a date such as 2012-12-31 be shown to equal 2012-12-31 00:00:00.000. Currently they show up as mismatches. |
|
| Back to top |
|
 |
Manfred.Castro
Joined: 23 Apr 2012 Posts: 127
|
Posted: Fri Aug 31, 2012 7:52 pm Post subject: |
|
|
You can try using a view to manipulate the data and compare against the view. _________________ Manfred Castro
Product Support
Red Gate Software |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group