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 |
PBoy
Starting Member
22 Posts |
Posted - 2011-02-22 : 14:57:31
|
Hi All,This may be a daft question but is there a simple way to update a datetime column to add 30 mins to what already exist in the column?For example update column "Next Run" with datetime 2011-02-22 22:15:00.000 with another 30 mins to the value so it updates to 2011-02-22 22:45:00.000.Any help would be great :)CheersPBoy |
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-02-22 : 15:02:31
|
UPDATE yourTableSET [Next Run] = dateadd(minute,30,[Next Run])JimEveryday I learn something that somebody else already knew |
 |
|
PBoy
Starting Member
22 Posts |
Posted - 2011-02-22 : 15:07:01
|
Brilliant what I wanted thank you jimfCheersPatrick |
 |
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-02-22 : 15:09:24
|
You're Welcome!JimEveryday I learn something that somebody else already knew |
 |
|
|
|
|