SlideShare una empresa de Scribd logo
1 de 3
Descargar para leer sin conexión
Introduction to Policy-Based Management in SQL Server 2008 | TechRepublic



   ZDNet Asia    SmartPlanet    TechRepublic                                                                                    Log In   Join TechRepublic   FAQ   Go Pro!




                                                   Blogs     Downloads       Newsletters       Galleries      Q&A     Discussions        News
                                               Research Library


     IT Management             Development         IT Support        Data Center         Networks        Security




     Home / Blogs / The Enterprise Cloud                                                  Follow this blog:

     The Enterprise Cloud


     Introduction to Policy-Based
     Management in SQL Server
     2008
     By Tim Chapman
     October 15, 2008, 7:37 AM PDT

     Takeaway: New to SQL Server 2008 is Policy-Based Management. This new technology allows
     for defining polices to ensure your database guidelines are met. In this article, SQL Server
     consultant Tim Chapman gives an overview of this new technology.

     Policy-Based Management in SQL Server 2008 allows the database administrator to define
     policies that tie to database instances and objects. These policies allow the Database
     Administrator (DBA) to specify rules for which objects and their properties are created, or
     modified. An example of this would be to create a database-level policy that disallows the
     AutoShrink property to be enabled for a database. Another example would be a policy that
     ensures the name of all table triggers created on a database table begins with tr_.

     As with any new SQL Server technology (or Microsoft technology in general), there is a new
     object naming nomenclature associated with Policy-Based Management. Below is a listing
     of some of the new base objects.

     Policy
     A Policy is a set of conditions specified on the facets of a target. In other words, a Policy is
     basically a set of rules specified for properties of database or server objects.

     Target
     A Target is an object that is managed by Policy-Based Management. Includes objects such
     as the database instance, a database, table, stored procedure, trigger, or index.

     Facet
     A Facet is a property of an object (target) that can be involved in Policy Based
     Management. An example of a Facet is the name of a Trigger or the AutoShrink property of
     a database.

     Condition
     A Condition is the criteria that can be specify for a Target’s Facets. For example, you can
     set a condition for a Fact that specifies that all stored procedure names in the Schema


http://www.techrepublic.com/blog/datacenter/introduction-to-policy-based-management-in-sql-server-2008/463[08/29/2012 3:46:54 PM]
Introduction to Policy-Based Management in SQL Server 2008 | TechRepublic


     ‘Banking’ begin with the name ‘bnk_’.



     You can also assign a policy to a category. This allows you manage a set of policies
     assigned to the same category. A policy belongs to only one category.

     Policy Evaluation Modes
     A Policy can be evaluated in a number of different ways:



        On demand - The policy is evaluated only when directly ran by the administrator.
        On change: prevent - DDL triggers are used to prevent policy violations.
        On change: log only - Event notifications are used to check a policy when a change
        is made.
        On schedule - A SQL Agent job is used to periodically check policies for violations.

     Advantages of Policy Based Management
     Policy-Based Management gives you much more control over your database procedures as
     a DBA. You as a DBA have the ability to enforce your paper policies at the database level.
     Paper polices are great for defining database standards are guidelines. However, it takes
     time and effort to enforce these. To strictly enforce them, you have to go over your
     database with a fine-toothed comb. With Policy-Based Management, you can define your
     policies and rest assured that they will be enforced.

     Next Time
     Today I took a look at the basic ideas behind Policy-Based Management in SQL Server
     2008. In my next article I’ll take a look at how you can make these ideas a reality by
     showing you how you can create your own polices to use to administer your SQL Server.




     Get IT Tips, news, and reviews delivered directly to your inbox by subscribing to TechRepublic’s free
     newsletters.




                   About Tim Chapman
                       Full Bio     Contact




                 Disable removable media                         Defining SQL Server 2008
                 through Windows Server                          Policies
                 2008's Group Policy
                 configuration

       People who read this...
          Dealing with case and accents in SQL Server




     Join the TechRepublic Community and join the conversation! Signing-up is


http://www.techrepublic.com/blog/datacenter/introduction-to-policy-based-management-in-sql-server-2008/463[08/29/2012 3:46:54 PM]
Introduction to Policy-Based Management in SQL Server 2008 | TechRepublic


     free and quick, Do it now, we want to hear your opinion.

       Join       Login




http://www.techrepublic.com/blog/datacenter/introduction-to-policy-based-management-in-sql-server-2008/463[08/29/2012 3:46:54 PM]

Más contenido relacionado

Similar a Introduction to policy based management in sql server 2008 tech-republic

Under New Management
Under New ManagementUnder New Management
Under New Managementukdpe
 
Sql Server 2008 Product Overview
Sql Server 2008 Product OverviewSql Server 2008 Product Overview
Sql Server 2008 Product OverviewIsmail Muhammad
 
Sql server 2008 r2 security overviewfor admins
Sql server 2008 r2 security   overviewfor adminsSql server 2008 r2 security   overviewfor admins
Sql server 2008 r2 security overviewfor adminsKlaudiia Jacome
 
Database audit policies copy
Database audit policies   copyDatabase audit policies   copy
Database audit policies copyOracle Apps DBA
 
You need rules? You need PBM!
You need rules? You need PBM!You need rules? You need PBM!
You need rules? You need PBM!Boris Hristov
 
sqlserverdbasanjay
sqlserverdbasanjaysqlserverdbasanjay
sqlserverdbasanjaysanjay kumar
 
Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...
Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...
Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...IRJET Journal
 
Sql server lesson8
Sql server lesson8Sql server lesson8
Sql server lesson8Ala Qunaibi
 
Sql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scaleSql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scaleKlaudiia Jacome
 
An intro to building an architecture repository meta model and modeling frame...
An intro to building an architecture repository meta model and modeling frame...An intro to building an architecture repository meta model and modeling frame...
An intro to building an architecture repository meta model and modeling frame...wweinmeyer79
 
Defining sql server 2008 policies tech republic
Defining sql server 2008 policies   tech republicDefining sql server 2008 policies   tech republic
Defining sql server 2008 policies tech republicKaing Menglieng
 
Ms sql developer
Ms sql developerMs sql developer
Ms sql developerTripti Jha
 
Evaluate Daily Checklist with PBM and CMS
Evaluate Daily Checklist with PBM and CMSEvaluate Daily Checklist with PBM and CMS
Evaluate Daily Checklist with PBM and CMSJohn Sterrett
 
10 tips-for-optimizing-sql-server-performance-white-paper-22127
10 tips-for-optimizing-sql-server-performance-white-paper-2212710 tips-for-optimizing-sql-server-performance-white-paper-22127
10 tips-for-optimizing-sql-server-performance-white-paper-22127Kaizenlogcom
 
TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...
TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...
TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...Charley Hanania
 
What Every Client Should Do On Their Oracle SOA Projects (article)
What Every Client Should Do On Their Oracle SOA Projects (article)What Every Client Should Do On Their Oracle SOA Projects (article)
What Every Client Should Do On Their Oracle SOA Projects (article)Revelation Technologies
 
Presentation application change management and data masking strategies for ...
Presentation   application change management and data masking strategies for ...Presentation   application change management and data masking strategies for ...
Presentation application change management and data masking strategies for ...xKinAnx
 

Similar a Introduction to policy based management in sql server 2008 tech-republic (20)

Under New Management
Under New ManagementUnder New Management
Under New Management
 
Sql Server 2008 Product Overview
Sql Server 2008 Product OverviewSql Server 2008 Product Overview
Sql Server 2008 Product Overview
 
Sql server 2008 r2 security overviewfor admins
Sql server 2008 r2 security   overviewfor adminsSql server 2008 r2 security   overviewfor admins
Sql server 2008 r2 security overviewfor admins
 
Database audit policies copy
Database audit policies   copyDatabase audit policies   copy
Database audit policies copy
 
You need rules? You need PBM!
You need rules? You need PBM!You need rules? You need PBM!
You need rules? You need PBM!
 
sqlserverdbasanjay
sqlserverdbasanjaysqlserverdbasanjay
sqlserverdbasanjay
 
Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...
Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...
Evaluation of Data Auditability, Traceability and Agility leveraging Data Vau...
 
Sql server lesson8
Sql server lesson8Sql server lesson8
Sql server lesson8
 
Sql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scaleSql server 2008 r2 performance and scale
Sql server 2008 r2 performance and scale
 
An intro to building an architecture repository meta model and modeling frame...
An intro to building an architecture repository meta model and modeling frame...An intro to building an architecture repository meta model and modeling frame...
An intro to building an architecture repository meta model and modeling frame...
 
Shantkumar_Resume
Shantkumar_ResumeShantkumar_Resume
Shantkumar_Resume
 
Shantkumar resume
Shantkumar resumeShantkumar resume
Shantkumar resume
 
Defining sql server 2008 policies tech republic
Defining sql server 2008 policies   tech republicDefining sql server 2008 policies   tech republic
Defining sql server 2008 policies tech republic
 
Ms sql developer
Ms sql developerMs sql developer
Ms sql developer
 
Evaluate Daily Checklist with PBM and CMS
Evaluate Daily Checklist with PBM and CMSEvaluate Daily Checklist with PBM and CMS
Evaluate Daily Checklist with PBM and CMS
 
10 tips-for-optimizing-sql-server-performance-white-paper-22127
10 tips-for-optimizing-sql-server-performance-white-paper-2212710 tips-for-optimizing-sql-server-performance-white-paper-22127
10 tips-for-optimizing-sql-server-performance-white-paper-22127
 
oracle
oracleoracle
oracle
 
TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...
TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...
TehDays Basel - Auditing in sql server 2012 - charley hanania - tech days bas...
 
What Every Client Should Do On Their Oracle SOA Projects (article)
What Every Client Should Do On Their Oracle SOA Projects (article)What Every Client Should Do On Their Oracle SOA Projects (article)
What Every Client Should Do On Their Oracle SOA Projects (article)
 
Presentation application change management and data masking strategies for ...
Presentation   application change management and data masking strategies for ...Presentation   application change management and data masking strategies for ...
Presentation application change management and data masking strategies for ...
 

Más de Kaing Menglieng

What is your sql server backup strategy tech_republic
What is your sql server backup strategy    tech_republicWhat is your sql server backup strategy    tech_republic
What is your sql server backup strategy tech_republicKaing Menglieng
 
Using sql server 2008's merge statement tech republic
Using sql server 2008's merge statement   tech republicUsing sql server 2008's merge statement   tech republic
Using sql server 2008's merge statement tech republicKaing Menglieng
 
Using object dependencies in sql server 2008 tech republic
Using object dependencies in sql server 2008   tech republicUsing object dependencies in sql server 2008   tech republic
Using object dependencies in sql server 2008 tech republicKaing Menglieng
 
Using hash fields in sql server tech republic
Using hash fields in sql server   tech republicUsing hash fields in sql server   tech republic
Using hash fields in sql server tech republicKaing Menglieng
 
Using grouping sets in sql server 2008 tech republic
Using grouping sets in sql server 2008   tech republicUsing grouping sets in sql server 2008   tech republic
Using grouping sets in sql server 2008 tech republicKaing Menglieng
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republicKaing Menglieng
 
Sql server indexed views speed up your select queries part 1 - code-projec
Sql server indexed views   speed up your select queries  part 1 - code-projecSql server indexed views   speed up your select queries  part 1 - code-projec
Sql server indexed views speed up your select queries part 1 - code-projecKaing Menglieng
 
Sql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookupSql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookupKaing Menglieng
 
Sql server common interview questions and answers
Sql server   common interview questions and answersSql server   common interview questions and answers
Sql server common interview questions and answersKaing Menglieng
 
Sql server common interview questions and answers page 6
Sql server   common interview questions and answers page 6Sql server   common interview questions and answers page 6
Sql server common interview questions and answers page 6Kaing Menglieng
 
Sql server common interview questions and answers page 5
Sql server   common interview questions and answers page 5Sql server   common interview questions and answers page 5
Sql server common interview questions and answers page 5Kaing Menglieng
 
Sql server common interview questions and answers page 4
Sql server   common interview questions and answers page 4Sql server   common interview questions and answers page 4
Sql server common interview questions and answers page 4Kaing Menglieng
 
Sql server common interview questions and answers page 2
Sql server   common interview questions and answers page 2Sql server   common interview questions and answers page 2
Sql server common interview questions and answers page 2Kaing Menglieng
 
Sql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql seSql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql seKaing Menglieng
 
Speeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joinsSpeeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joinsKaing Menglieng
 
Speed up sql server apps - visual studio magazine
Speed up sql server apps  - visual studio magazineSpeed up sql server apps  - visual studio magazine
Speed up sql server apps - visual studio magazineKaing Menglieng
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republicKaing Menglieng
 
Reviewing sql server permissions tech republic
Reviewing sql server permissions   tech republicReviewing sql server permissions   tech republic
Reviewing sql server permissions tech republicKaing Menglieng
 
Query optimization how to search millions of record in sql table faster -
Query optimization   how to search millions of record in sql table faster  -Query optimization   how to search millions of record in sql table faster  -
Query optimization how to search millions of record in sql table faster -Kaing Menglieng
 

Más de Kaing Menglieng (20)

What is your sql server backup strategy tech_republic
What is your sql server backup strategy    tech_republicWhat is your sql server backup strategy    tech_republic
What is your sql server backup strategy tech_republic
 
Using sql server 2008's merge statement tech republic
Using sql server 2008's merge statement   tech republicUsing sql server 2008's merge statement   tech republic
Using sql server 2008's merge statement tech republic
 
Using object dependencies in sql server 2008 tech republic
Using object dependencies in sql server 2008   tech republicUsing object dependencies in sql server 2008   tech republic
Using object dependencies in sql server 2008 tech republic
 
Using hash fields in sql server tech republic
Using hash fields in sql server   tech republicUsing hash fields in sql server   tech republic
Using hash fields in sql server tech republic
 
Using grouping sets in sql server 2008 tech republic
Using grouping sets in sql server 2008   tech republicUsing grouping sets in sql server 2008   tech republic
Using grouping sets in sql server 2008 tech republic
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republic
 
Sql server indexed views speed up your select queries part 1 - code-projec
Sql server indexed views   speed up your select queries  part 1 - code-projecSql server indexed views   speed up your select queries  part 1 - code-projec
Sql server indexed views speed up your select queries part 1 - code-projec
 
Sql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookupSql server – query optimization – remove bookmark lookup – remove rid lookup
Sql server – query optimization – remove bookmark lookup – remove rid lookup
 
Sql server common interview questions and answers
Sql server   common interview questions and answersSql server   common interview questions and answers
Sql server common interview questions and answers
 
Sql server common interview questions and answers page 6
Sql server   common interview questions and answers page 6Sql server   common interview questions and answers page 6
Sql server common interview questions and answers page 6
 
Sql server common interview questions and answers page 5
Sql server   common interview questions and answers page 5Sql server   common interview questions and answers page 5
Sql server common interview questions and answers page 5
 
Sql server common interview questions and answers page 4
Sql server   common interview questions and answers page 4Sql server   common interview questions and answers page 4
Sql server common interview questions and answers page 4
 
Sql server common interview questions and answers page 2
Sql server   common interview questions and answers page 2Sql server   common interview questions and answers page 2
Sql server common interview questions and answers page 2
 
Sql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql seSql server – 2008 – hardware and software requirements for installing sql se
Sql server – 2008 – hardware and software requirements for installing sql se
 
Speeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joinsSpeeding up queries with semi joins and anti-joins
Speeding up queries with semi joins and anti-joins
 
Speed up sql
Speed up sqlSpeed up sql
Speed up sql
 
Speed up sql server apps - visual studio magazine
Speed up sql server apps  - visual studio magazineSpeed up sql server apps  - visual studio magazine
Speed up sql server apps - visual studio magazine
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republic
 
Reviewing sql server permissions tech republic
Reviewing sql server permissions   tech republicReviewing sql server permissions   tech republic
Reviewing sql server permissions tech republic
 
Query optimization how to search millions of record in sql table faster -
Query optimization   how to search millions of record in sql table faster  -Query optimization   how to search millions of record in sql table faster  -
Query optimization how to search millions of record in sql table faster -
 

Introduction to policy based management in sql server 2008 tech-republic

  • 1. Introduction to Policy-Based Management in SQL Server 2008 | TechRepublic ZDNet Asia SmartPlanet TechRepublic Log In Join TechRepublic FAQ Go Pro! Blogs Downloads Newsletters Galleries Q&A Discussions News Research Library IT Management Development IT Support Data Center Networks Security Home / Blogs / The Enterprise Cloud Follow this blog: The Enterprise Cloud Introduction to Policy-Based Management in SQL Server 2008 By Tim Chapman October 15, 2008, 7:37 AM PDT Takeaway: New to SQL Server 2008 is Policy-Based Management. This new technology allows for defining polices to ensure your database guidelines are met. In this article, SQL Server consultant Tim Chapman gives an overview of this new technology. Policy-Based Management in SQL Server 2008 allows the database administrator to define policies that tie to database instances and objects. These policies allow the Database Administrator (DBA) to specify rules for which objects and their properties are created, or modified. An example of this would be to create a database-level policy that disallows the AutoShrink property to be enabled for a database. Another example would be a policy that ensures the name of all table triggers created on a database table begins with tr_. As with any new SQL Server technology (or Microsoft technology in general), there is a new object naming nomenclature associated with Policy-Based Management. Below is a listing of some of the new base objects. Policy A Policy is a set of conditions specified on the facets of a target. In other words, a Policy is basically a set of rules specified for properties of database or server objects. Target A Target is an object that is managed by Policy-Based Management. Includes objects such as the database instance, a database, table, stored procedure, trigger, or index. Facet A Facet is a property of an object (target) that can be involved in Policy Based Management. An example of a Facet is the name of a Trigger or the AutoShrink property of a database. Condition A Condition is the criteria that can be specify for a Target’s Facets. For example, you can set a condition for a Fact that specifies that all stored procedure names in the Schema http://www.techrepublic.com/blog/datacenter/introduction-to-policy-based-management-in-sql-server-2008/463[08/29/2012 3:46:54 PM]
  • 2. Introduction to Policy-Based Management in SQL Server 2008 | TechRepublic ‘Banking’ begin with the name ‘bnk_’. You can also assign a policy to a category. This allows you manage a set of policies assigned to the same category. A policy belongs to only one category. Policy Evaluation Modes A Policy can be evaluated in a number of different ways: On demand - The policy is evaluated only when directly ran by the administrator. On change: prevent - DDL triggers are used to prevent policy violations. On change: log only - Event notifications are used to check a policy when a change is made. On schedule - A SQL Agent job is used to periodically check policies for violations. Advantages of Policy Based Management Policy-Based Management gives you much more control over your database procedures as a DBA. You as a DBA have the ability to enforce your paper policies at the database level. Paper polices are great for defining database standards are guidelines. However, it takes time and effort to enforce these. To strictly enforce them, you have to go over your database with a fine-toothed comb. With Policy-Based Management, you can define your policies and rest assured that they will be enforced. Next Time Today I took a look at the basic ideas behind Policy-Based Management in SQL Server 2008. In my next article I’ll take a look at how you can make these ideas a reality by showing you how you can create your own polices to use to administer your SQL Server. Get IT Tips, news, and reviews delivered directly to your inbox by subscribing to TechRepublic’s free newsletters. About Tim Chapman Full Bio Contact Disable removable media Defining SQL Server 2008 through Windows Server Policies 2008's Group Policy configuration People who read this... Dealing with case and accents in SQL Server Join the TechRepublic Community and join the conversation! Signing-up is http://www.techrepublic.com/blog/datacenter/introduction-to-policy-based-management-in-sql-server-2008/463[08/29/2012 3:46:54 PM]
  • 3. Introduction to Policy-Based Management in SQL Server 2008 | TechRepublic free and quick, Do it now, we want to hear your opinion. Join Login http://www.techrepublic.com/blog/datacenter/introduction-to-policy-based-management-in-sql-server-2008/463[08/29/2012 3:46:54 PM]