concept system in category sql

This is an excerpt from Manning's book SQL Server MVP Deep Dives Vol. 2.
I’d like to emphasize the fact that a relational model database is (surprise, surprise)... a model. That may sound obvious, but it does carry a lot of meaning and corresponding responsibility. Dictionary.com defines model as “a simplified represen-tation of a system or phenomenon, as in the sciences or economics, with any hypotheses required to describe the system or explain the phenomenon, often mathematically.” A database models, in relational form or some other form, some physical or logical universe, entity, or phenomenon (or a part of one of those). It’s designed to be a mirror, in relational language and terms, of its real characteristics and functions.
In any computer programming, any standard is better than no standard (and no, the standard to have no standard is cheating and will make Genie angry). Adherence to standards ensures that when you start to look for something, you can determine the meaning in a common manner. Obviously the best standards are the ones that make it easy to understand the system without going to the documentation to decode the meaning of a name; you should have to use documentation only for clarification purposes.
Listing 3. C# code of user-defined function that returns value of a performance counter
using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using System.Diagnostics; public partial class UserDefinedFunctions { [Microsoft.SqlServer.Server.SqlFunction] public static SqlDouble ufn_clr_GetPerfCounterValue( SqlString CategoryName, SqlString CounterName, SqlString InstanceName, SqlString MachineName ) { MachineName = MachineName.IsNull ? "." : MachineName.Value; PerformanceCounter p = new PerformanceCounter( CategoryName.Value, CounterName.Value, InstanceName.Value, MachineName.Value); float value = p.NextValue(); System.Threading.Thread.Sleep(100); value = p.NextValue(); return new SqlDouble(value); } };

This is an excerpt from Manning's book SQL Server DMVs in Action: Better Queries with Dynamic Management Views.
Table 1.1. The major DMV groups

This is an excerpt from Manning's book SQL Server MVP Deep Dives.
In SQL Server 2005, Microsoft added in something called SNAPSHOT isolation level. In SNAPSHOT isolation level, when you start a transaction, all the data you read will look exactly as it did when you started the transaction. Currently executing processes don’t lock you out; they maintain the previous version for anyone who wants to see it. This is a nifty way to implement a system, but it presents some difficulties for modifying data—you really have to consider how the SNAPSHOT isolation level will affect your queries and applications. SNAPSHOT transaction isolation uses row versioning to store the before image of the data in tempdb, so fully understanding the impact on your hardware is very important.
As an architect first and foremost, I have always been interested in the performance and usage information I can extract out of my SQL Server instances. In versions prior to SQL Server 2005, there was a wide range of ways to get this information, such as cryptic DBCC commands, bit flags in system tables (mostly undocumented), and system stored procedures (some unsupported). SQL Server 2005 introduced us to a new way to derive this data: Dynamic Management Views (DMVs) and Dynamic Management Functions (DMFs), collectively known as DMVs.
Listing 6. Making a system stored procedure
USE [master]; GO IF OBJECT_ID('dbo.sp_AB_GetUnusedProcedures', N'P') IS NOT NULL DROP PROCEDURE dbo.sp_AB_GetUnusedProcedures; GO CREATE PROCEDURE dbo.sp_AB_GetUnusedProcedures AS BEGIN SET NOCOUNT ON; SELECT 'These procedures have not been executed in the past ' + RTRIM(uptime) + ' minutes (the last time SQL started)', sqlserver_start_time FROM AB_Utility.dbo.AB_Uptime(); SELECT [name] = AB_Utility.dbo.AB_GetThreePartName (p.[object_id], DB_ID()), p.create_date, p.modify_date FROM sys.procedures AS p LEFT OUTER JOIN sys.dm_exec_procedure_stats AS ps ON p.[object_id] = ps.[object_id] WHERE ps.[object_id] IS NULL ORDER BY p.[Name]; END GO EXEC dbo.sp_MS_marksystemobject N'dbo.sp_AB_GetUnusedProcedures'; GO USE [your_database]; GO EXEC dbo.sp_AB_GetUnusedProcedures; GO