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
How to pass a variable into DATEADD function in SQL String
Hard drives out of a raid are not recognized
KMS is activating Win7 Pro but not Win 2008 R2 Enterprise
How do I push IE 8 through WSUS using Group polciy
VMWare ESXi vs vSphere Essential ($495 Option)
htaccess Partial Query String Rewrite
Sharepoint takes forever to load on first access of the day... How do I fix this?
SSIS/TSQL Three Part Naming for Temp Table
Blackberry Connection Test
Modal Popup Validation Summary