SQL Facts: Indexes Limit Increased in SQL 2008
The limit of nonclustered indexes are increased from 249 to 999 in SQL Server 2008
The things I came across and admired
SELECT
privilege on VIEW SERVER STATE
and for database scoped DMV, the user must have SELECT
privilege on VIEW DATABASE STATE
.DENY
command to restrict access to a specific DMV.DM_
. So when you need to query a DMV, you should prefix the view name with SYS
. As an example, if you need to see the total physical memory of the SQL Server machine; then execute the below TSQL command:SELECT
(Physical_memory_in_bytes/1024.0)/1024.0 AS Physical_memory_in_Mb
FROM
sys.dm_os_sys_info
Physical_memory_in_bytes
: Amount of physical memory availableVirtual_memory_in_bytes
: Amount of virtual memory availableBpool_commited
: Committed physical memory in buffer poolOS_Priority_class
: Priority class for SQL Server processMax_workers_thread
: Maximum number of workers which can be createdName
: Name of the host registeredType
: Type of hosted component [SQL Native Interface/OLE DB/MSDART]Active_tasks_count
: Number active tasks host placedActive_ios_count
: I/O requests from host waiting