SQL Server的一些系统变量
2010-04-27 15:09
169 查看
SQL Server的一些系统变量
sp_configure 'min server memory' --服务器最小内存gosp_configure 'max server memory' --服务器最大内存'gosp_configure 'index create memory'--创建索引占用的内存go--sp_configure 'min memory per query'--每次查询占用的最小内存
--获取磁盘读写情况select @@total_read as '读取磁盘的次数', @@total_write as '写入磁盘的次数',-- @@total_error as '磁盘写入错误数', getdate() as '当前时间'
--获取I/O工作情况select -- @@id_busy,--SQL自上次启动以来的用于执行输入和输出操作的时间 @@timeticks, --每个时钟周期对应的微秒数-- @@id_busy*@@timeticks as 'I/O 操作毫秒数', getdate() as '当前时间'
--查看SQL SEVER CPU活动,工作情况select @@cpu_busy,--自上次启动以来的工作时间 @@timeticks, --每个时钟周期对应的微秒数 @@cpu_busy*cast(@@timeticks as float)/1000 as 'cpu工作时间(秒)',-- @@idie*cast(@@timeticks as float)/1000 as 'CPU空闲时间(秒)' getdate() as '当前时间'
--获取网络数据包统计信息select getdate() as '当前时间', @@pack_received as'输入数据包数量', @@pack_sent as '输出数据包数量'--,-- @@packet_error as '错误包数量'
sp_configure 'min server memory' --服务器最小内存gosp_configure 'max server memory' --服务器最大内存'gosp_configure 'index create memory'--创建索引占用的内存go--sp_configure 'min memory per query'--每次查询占用的最小内存
--获取磁盘读写情况select @@total_read as '读取磁盘的次数', @@total_write as '写入磁盘的次数',-- @@total_error as '磁盘写入错误数', getdate() as '当前时间'
--获取I/O工作情况select -- @@id_busy,--SQL自上次启动以来的用于执行输入和输出操作的时间 @@timeticks, --每个时钟周期对应的微秒数-- @@id_busy*@@timeticks as 'I/O 操作毫秒数', getdate() as '当前时间'
--查看SQL SEVER CPU活动,工作情况select @@cpu_busy,--自上次启动以来的工作时间 @@timeticks, --每个时钟周期对应的微秒数 @@cpu_busy*cast(@@timeticks as float)/1000 as 'cpu工作时间(秒)',-- @@idie*cast(@@timeticks as float)/1000 as 'CPU空闲时间(秒)' getdate() as '当前时间'
--获取网络数据包统计信息select getdate() as '当前时间', @@pack_received as'输入数据包数量', @@pack_sent as '输出数据包数量'--,-- @@packet_error as '错误包数量'
相关文章推荐
- thinkphp3.2.3的一些系统默认变量
- Android中如何获得一些系统设置和环境变量?
- SQL Server中的20个系统变量
- sql server的20个系统变量
- SQL Server 系统表,系统过程,系统变量,函数
- php里面的一些系统变量,常量收集
- 在sql server中一些有用的的系统储存过程
- url重写(urlrewrite)的一些系统变量
- SAP SMARTFORMS 常用的一些系统变量
- 通过proc文件系统修改内核中预定的一些变量
- SQL Server 系统全局变量
- linux的几个内核镜像格式Image 和 u-boot启动内核和文件系统时的一些环境变量的设置
- perl 的一些系统变量
- 与软件编译安装有关的一些系统环境变量的说明
- 一些SQL SERVER的系统信息
- TSQL--SQL SERVER 常用系统变量
- SQL Server 系统表,系统过程,系统变量,函数
- SQL Server中应该了解的20个系统变量
- 一些推荐系统包的推荐
- Shell脚本学习(一):shell变量和一些常用命令