it looks like SQL Server 2008 has nanosecond precision
if you run the following
The output is this
Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
SQLBlog.com, Google Interview Questions
if you run the following
Code:
DECLARE @t time
SELECT @t ='0:0'
SELECT @t AS Time1,dateadd(ms,1,@t) AS TimeMilli,
dateadd(ns,10000,@t) AS TimeNano1,dateadd(ns,100,@t) AS TimeNano2
The output is this
Code:
Time1 00:00:00.0000000
TimeMilli 00:00:00.0010000
TimeNano1 00:00:00.0000100
TimeNano2 00:00:00.0000001
Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
SQLBlog.com, Google Interview Questions