Compare Page Revisions
« Older Revision - Back to Page History - Current Revision
declare @StartTime datetime declare @TotalRows int declare @RowsDone int select @StartTime = '05/20/2009 01:00:00am' ,@TotalRows = 24 ,@RowsDone = 12 with MyData as ( select Ctime = getdate() ,SecElap = convert(float, datediff(s, @StartTime, getdate())) ,RowsDone = convert(float, @RowsDone) ,RowsLeft = convert(float, @TotalRows - @RowsDone) ) select CTime ,RowsDone ,RowsLeft ,Etc = convert(varchar(30), dateadd(s, SecElap * RowsLeft / RowsDone, CTime), 0) from MyData
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.