Advertisement
danielc2

SQL Speed Test

Aug 12th, 2022
3,919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.38 KB | None | 0 0
  1. DECLARE @t1 DATETIME;
  2. DECLARE @t2 DATETIME;
  3.  
  4. SET @t1 = GETDATE();
  5. SELECT TOP 100000 * FROM [BRT-DR01].[livefdb].[dbo].RegAcctQuery_Result;
  6. SET @t2 = GETDATE();
  7. SELECT DATEDIFF(millisecond,@t1,@t2) AS elapsed_ms;
  8.  
  9. SET @t1 = GETDATE();
  10. SELECT TOP 100000 * FROM [BRT-DR01].[livefdb].[dbo].RegAcctQuery_Result;
  11. SET @t2 = GETDATE();
  12. SELECT DATEDIFF(millisecond,@t1,@t2) AS elapsed_ms;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement