DECLARE @time DATETIME SET @time= GETDATE() SELECT * FROM dbo.Employee SELECT DateDiff(ms,@time,GetDate())