Category Archives: Database

Policy Based Management in SQL Server 2008

Policy-base Management is a new feature in SQL Server 2008 that helps SQL Server administration. It allows us to define and enforce policies for configuring and managing SQL Server across the enterprise. The policy-based framework implements the policies behind the scene with a Policy Engine, SQL Server Agent jobs, SQLCLR, DDL triggers and Service Broker. Policies can be applied or evaluated against a single server or a group of servers.

To understand PBM we have to understand the below terms.
Target – an entity that is managed by PBM (i.e. database, table, index, etc.)
Facet – a predefined set of properties that can be managed
Condition – a property expression that evaluates to facets on target and returns True or False;
Policy – a condition to be checked and/or enforced

Expand the Management Node to use the PBM.

Expand the facets node to checkout the facets.

To Check out facets properties double click on facets. I have clicked on Login Facets. These facet properties are used to specify a condition

Step By Step Log-Shipping Configuration for SQL Server

Setting up Log Shipping for SQL Server is not that difficult, but having a step by step process is helpful if this is the first time you have setup Log Shipping. In this tip we walk through the steps to setup Log Shipping.

To read the step by step Log-Shipping steps CLICK ME to read it.

Or Open http://mssqltips.com/tip.asp?tip=2301 link

SQLWB.exe (SQL2k5) and SSMS.exe(SQL2K8)

SQLWB (sqlwb.exe) /SSMS(SSMS.exe) is the executable file that launches SQL Server Management Studio. I am usually using it to launch the SQL Server management studio instead of navigating through Start -> All Programs -> SQL Server 2005 -> SQL Server Management Studio.

Above command will launch the SQL Server 2005 Management Studio. You can launch the SQL2k8 management studio using SSMS.exe

You can also pass below list of argument with it, I am executing below command to see the list of parameters.

c:\sqlwb.exe -?