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
Canon T1i and off camera wireless flash
How do I restore Admin Share (Admin$) to 50 workstations on a Win2003 domain?
Crystal cross-tab page numbering
Outlook Contact Consolidation
Publish Resource Calendar for all users
SSMS no tables shown in Query Designer
Cisco Rv042 -- how do forwarding rules and firewall access rules work together? And PPTP
Apple Mail Notes keep reappearing after deletion
Help needed to install Team Foundation Server 2010
Access 2007 Combo box synchronization