Home > Database > Mysql Tutorial > SQL Server 中查看SQL句子执行所用的时间

SQL Server 中查看SQL句子执行所用的时间

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:58:41
Original
966 people have browsed it

在MSSQL Server中通过查看SQL语句执行所用的时间,来衡量SQL语句的性能。

代码如下:
set statistics profile on
set statistics io on
set statistics time on
go

你执行的SQL语句
代码如下:
go
set statistics profile off
set statistics io off
set statistics time off


执行完后点消息即可。

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
sql file
From 1970-01-01 08:00:00
0
0
0
php - Overhead of prepare vs sql?
From 1970-01-01 08:00:00
0
0
0
Print sql statement
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
sql optimization or
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template