SET @secret= - (convert(float,getdate()) - convert(int,getdate()) ) * 1000000 ;
WHen I put the '-'
before the (convert, it works after 12 AM but when I delete the '-'
it works before 12 AM. This is seriously strange. What can I do to prevent this?