摘要:
SELECT type as 'plan cache store', buckets_count FROM sys.dm_os_memory_cache_hash_tables WHERE type IN ('CACHESTORE_OBJCP', 'CACHESTORE_SQLCP'); SELEC 阅读全文
摘要:
索引使用率 select distinct db_name(database_id) as N'数据库名称', object_name(a.object_id) as N'表名', b.name N'索引名称', user_seeks N'用户索引查找次数', user_scans N'用户索引扫描 阅读全文
摘要:
You have to either choose dir-monitoring and file-change-notification with its drawback of using SMB resources or periodic file attribute check with i 阅读全文
摘要:
原创地址:http://www.cnblogs.com/jfzhu/p/3705703.html 转载请注明出处 和数据库建立一个物理连接是一个很耗时的任务,所以无论是ADO.NET还是J2EE都提供了一个连接池的技术。 一个池其实就是一个列表。在ADO.NET中,有一个Connection Man 阅读全文
摘要:
SELECT COUNT(1) FROM [sys].[fn_dblog](NULL,NULL) 阅读全文
摘要:
create index StatisticsTagArea_AreaId on StatisticsTagArea(AreaId) include(TagId) drop index StatisticsTagArea_AreaId on StatisticsTagArea create inde 阅读全文
摘要:
select request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT' 阅读全文
摘要:
sp_who可以返回如下信息: (可选参数LoginName, 或active代表活动会话数)Spid (系统进程ID)status (进程状态)loginame (用户登录名)hostname(用户主机名)blk (阻塞进程的SPID)dbname (进程正在使用的数据库名)Cmd (当前正在执行 阅读全文
摘要:
select er.session_id, CAST(csql.text AS varchar(255)) AS CallingSQL from master.sys.dm_exec_requests er WITH (NOLOCK) CROSS APPLY fn_get_sql (er.sql_h 阅读全文