Groups | Blog | Home
all groups > sql server dts > july 2004 >

sql server dts : Time problem


anonymous NO[at]SPAM discussions.microsoft.com
7/30/2004 12:24:04 AM
How do I get only the time out of getdate()?

Allan Mitchell
7/30/2004 8:55:01 AM
You will need to extract it to a character attribute


so this will give you time as HH:MM:SS

select convert(char(8), getdate(),108)





--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

AddThis Social Bookmark Button