Search
 
SCRIPT & CODE EXAMPLE
 

SQL

timing sql queries

DECLARE @t1 DATETIME;
DECLARE @t2 DATETIME;

SET @t1 = GETDATE();
SELECT /* query one */ 1 ;
SET @t2 = GETDATE();
SELECT DATEDIFF(millisecond,@t1,@t2) AS elapsed_ms;

SET @t1 = GETDATE();
SELECT /* query two */ 2 ;
SET @t2 = GETDATE();
SELECT DATEDIFF(millisecond,@t1,@t2) AS elapsed_ms;
Comment

timing sql queries

SELECT GETDATE();
SELECT /* query one */ 1 ;
SELECT GETDATE();
SELECT /* query two */ 2 ; 
SELECT GETDATE(); 
Comment

PREVIOUS NEXT
Code Example
Sql :: insert into with 3 tables 
Sql :: how to Activate the database 
Sql :: guid string to binary better 
Sql :: add column in table in sql 
Sql :: open mysql port bitnami tomact 
Csharp :: guid.empty 
Csharp :: messagebox yes-no 
Csharp :: unity mouse lock 
Csharp :: c# print hello world 
Csharp :: c# sleep 
Csharp :: Point to mouse 2D Unity 
Csharp :: c# getasynckeystate mouse 
Csharp :: unity gameobject teleporting 
Csharp :: ALWAYS MAximize window on start c# 
Csharp :: unity get mouse position 
Csharp :: save file with unique name c# 
Csharp :: how to convert int to string unity c# 
Csharp :: rigidbody2d freeze position 
Csharp :: Program for factorial of a number in c# 
Csharp :: randomize through array in C# 
Csharp :: c# wait seconds 
Csharp :: c# output double with precision 
Csharp :: resize image c# 
Csharp :: how to find the mouse position unity 
Csharp :: move in the direction that player is facing unity 
Csharp :: c# current thread id 
Csharp :: c# empty char 
Csharp :: OnCollision update 
Csharp :: unity convert mouse position to world position in editor mode 
Csharp :: unity text display int 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =