Tutorials
Resources
Forum
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
My Profile
Sign In
Register
AdSense Revenue
Gifts
Active Members
Today
Athira Appukut...
(182)
ANIL PANDEY
(127)
loki
(119)
Last 7 Days
Athira Appukut...
(1324)
Satyanarayan Su...
(513)
Megha P.
(470)
more...
How to get code Execution Time
Posted Date: 04 May 2008 Resource Type:
Code Snippets
Category:
SQL
Posted By:
Vijaya
Member Level:
Diamond
Rating:
Points
: 10
The following code snippet helps to get code execution time
DECLARE @start DATETIME, @End DATETIME
SET @start = CURRENT_TIMESTAMP
DECLARE @i INT
SET @i = 0
WHILE @i < 24000
BEGIN
SET @i = @i + 1
END
SET @End = CURRENT_TIMESTAMP
SELECT DATEDIFF(MS, @start, @End)
Responses
Author:
santhoshkumar
09 May 2008
Member Level:
Gold
Points
: 2
I will check and see what will hapen
Author:
Jaya Kumar
15 May 2008
Member Level:
Gold
Points
: 2
Use also Use Like this
SELECT GetDate()
//Your Query Comes Here
SELECT GetDate()
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
How to Copy Data from one table to another
Previous Resource:
Find Difference between two dates in T-SQL
Return to Discussion Resource Index
Post New Resource
Category:
SQL
Post resources and
earn money
!
Related Resources
PIVOT Operator in SQL Server 2005
Generate GUID (Unique Identifier) in SQL Server
Calculate AGE
How to drop Constraints in SQL Server
Output clause with Update Magic Table
dotNet Slackers
BizTalk Adaptors
Web Design
budget conference call
Contact Us
Privacy Policy
Terms Of Use