You have an error in your SQL syntax near '(mm, GETDATE()) * 100000 ) + (DATEPART(ss, GETDATE()) * 1000 ) ' at line 1