WAITFOR DELAY works fine for less than 1 second.See code and results below.eclare @start datetimeset @start = getdate()waitfor delay '00:00:00.500'print 'Elapsed Time = '+ right(convert(varchar(30),getdate()-@start,121),12)set @start = getdate()waitfor delay '00:00:00.200'print 'Elapsed Time = '+ right(convert(varchar(30),getdate()-@start,121),12)set @start = getdate()waitfor delay '00:00:00.010'print 'Elapsed Time = '+ right(convert(varchar(30),getdate()-@start,121),12)
Results:Elapsed Time = 00:00:00.517Elapsed Time = 00:00:00.203Elapsed Time = 00:00:00.017
CODO ERGO SUM