Author:
http://blog.joycode.com/liuhuiMiao/
The SQLConnection in .NET 2.0 has more statisticsenabled attributes and resetstatistics (), two methods for obtaining SQLServer connection statistics. Of course, this is based on performance loss, but a quick and practical means for monitoring database status is not.
<% @ Import namespace = "system.data"%> <% @ import name.datament = "system.data.sqlclient"%> <% @ page language = "c #"%>