Thanks Much, This is what is getting returned...
1> SELECT cast(datepart(mm,max(execu
2> cast(datepart(dd,max(execu
3> cast(datepart(yy,max(execu
4> substring (CONVERT(char(23), max(executiondatetime), 116), 11, 8)
5>
6> FROM jobhistory
7> go
--------------------------
4 :22:2009:9 13:55:
The output from the original query says... how did you get the minutes and seconds?
1> Select max(executiondatetime) from jobhistory where jobid = 1500
2> go
--------------------------
Apr 22 2009 3:00AM
Main Topics
Browse All Topics





by: rrjegan17Posted on 2009-04-22 at 13:12:36ID: 24209082
Try this one out:
Replace column and urtable with column and table names respectively
Select allOpen in new window