我想知道是否有任何查询知道SQL Server的状态。查询查找SQL Server的状态
在MySQL中,我们可以使用SHOW STATUS
。它会返回状态..
mysql> SHOW STATUS;
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 0 |
| Aborted_connects | 0 |
| Bytes_received | 155372598 |
| Bytes_sent | 1176560426 |
| Connections | 30023 |
| Created_tmp_disk_tables | 0 |
| Created_tmp_tables | 8340 |
| Created_tmp_files | 60 |
| Open_tables | 1 |
| Open_files | 2 |
| Open_streams | 0 |
| Opened_tables | 44600 |
| Questions | 2026873 |
| Table_locks_immediate | 1920382 |
| Table_locks_waited | 0 |
| Threads_cached | 0 |
| Threads_created | 30022 |
| Threads_connected | 1 |
| Threads_running | 1 |
| Uptime | 80380 |
+--------------------------+------------+
这样,所有查询的SQL Server ..?
检查了这一点:http://dba.stackexchange.com/questions/13975/how-to-check-the-status-of-sql-server – Ares
可以检查SYS为这种事情:sys.object,sys.databases,sys.dm_exec_requests等 – HellBaby
http://msdn.microsoft.com/en-us/library/ms177648%28v=sql.90%29.aspx –