Microsoft
Software
Hardware
Network
Question : SQLSERVER UPdate Time to 00:00:00
Hello,
I have a SQLSERVER Table with a field defined as mDAteTime.
mDateTime has the following samplle data:
10/15/2008 7:00:00 AM
10/18/2008 7:00:00 AM
10/20/2008 7:00:00 AM
10/21/2008 7:00:00 AM
I would like to update the 07:00:00 to 00:00:00. I have used the following commands unsuccesfully:
update LocationContributions SET mDateTime = DateAdd(hh,0,mDateTime)
update LocationContributions SET mDateTime = DateAdd(hh,-07,mDateTime)
Please help. Thanks
Steve Stacel
Answer : SQLSERVER UPdate Time to 00:00:00
update LocationContributions SET mDateTime = DATEDIFF(d, 0, mDateTime)
Random Solutions
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
Lable (and other elements) not appearing in my code behind
VMware Workstation 7.1 Won't Install
How to block USB Disks using Windows 2008 R2 Domain Controller Group Policy
Exchange database backup failing with Arcserve v15
Does OpenOffice allow Windows 7 preview pane to preview .doc and .xls files?
Cisco ASA SIte to Site NAT Options.
How do i factory reset netvanta 1524st switch from the cli command line?
Count consecutive values in MS SQL Server 2005
Having a problem json encoding a string with quotes