Anyone knows a function which chooses the records with the maximum date; ie: most recent out of duplicate records?
- ....where date = ( select max(date) from table )
so what's the problem with DATEDIFF?
use 'Convert' to get datetime value of 26/08/2003 13:55,
18/08/2003 14:00
and then DATEDIFF ( datepart , startdate , enddate )
** Is there a time-out value that I can increase so the Agent can start without first giving this message?
yesy there is. open EM -> SQL Server Group -> YourServer ->
Management -> right click SQL Server Agent -> properties->
Connection -> Login timeout
** what could be causing the...
>...and than tried to copy this column into another one (a >datetime column).
please post how did u exactly tried it.
if you used DTS then you should try it manually (make script), using Convert function to convert char values to data. probably some of data values was incorrect, for example...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.