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.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Getdate

Author  Topic 

sqldba20
Posting Yak Master

183 Posts

Posted - 2008-03-13 : 13:43:05
Folks:

I use,

PRINT CONVERT(VARCHAR, GETDATE())

To write the current date to the console (for debugging purposes). Only problem is it only shows hours and minutes (not seconds). Can anyone suggest an equivalent that shows seconds as well?

X002548
Not Just a Number

15586 Posts

Posted - 2008-03-13 : 14:17:04
PRINT CONVERT(varchar(25),GetDate(),121)


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -