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 |
|
insanepaul
Posting Yak Master
178 Posts |
Posted - 2011-11-10 : 09:46:53
|
| How do I get the date time without the minutes and seconds so it looks like this:dd/mm/yyyy hh:00:00 |
|
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2011-11-10 : 09:51:17
|
| select DATEADD(hh,datediff(hh,0,getdate()),0)==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
insanepaul
Posting Yak Master
178 Posts |
Posted - 2011-11-10 : 09:53:33
|
great thanks for thatquote: Originally posted by nigelrivett select DATEADD(hh,datediff(hh,0,getdate()),0)==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy.
|
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
sql-programmers
Posting Yak Master
190 Posts |
|
|
|
|
|