SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
Defining SQL Server 2008 Policies | 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


     Defining SQL Server 2008
     Policies
     By Tim Chapman
     October 20, 2008, 10:41 AM PDT

     Takeaway: You’ve already had a brief introduction to Policy Based Management, a new SQL
     Server 2008 feature that allows the Database Administrator the ability to define and enforce
     policies through the database engine.Tim Chapman now shows how you can use SQL Server
     Management Studio to define your own policies.

     In a previous article, I gave a brief introduction to Policy Based Management, a new SQL Server
     2008 feature that allows the Database Administrator the ability to define and enforce policies
     through the database engine. In today’s article I’ll look at how you can use SQL Server
                                                                                                                            Btrieve 6.15 Forever
     Management Studio to define your own policies.
                                                                                                                            Still using Btrieve? So are we! Get the Ultimate

     Define your Policies
                                                                                                                            Btrieve Patch
                                                                                                                            pervasivedb.com/btrieve
     The most challenging part of creating an effective database policy system is deciding what exactly                     Google Docs For Business
     it is your want to create policies for. SQL Server 2008 provides a large range of Facets (objects)                     Start with 5 GB of Included Storage Get
     for which conditions and policies can be defined for, so it will absolutely be worth the effort to take                Additional 20 GB Just $4/month!
     some time to map out what Policies you want to enforce.                                                                www.google.com/apps
                                                                                                                            re-lion Builder
     To define a new Policy, open SQL Server Management Studio and navigate to the Management                               Leading in easy to use terrain database
     node in Object Explorer. Before I can define a Policy, I’ll first need to define a new Condition and                   generation tools
     can easily do so by right-clicking on the Conditions folder under the Policy Management folder.                        www.re-lion.com




                                                                                                                       Keep Up with TechRepublic




                                                                                                                        
                                                                                                                             Five Apps
                                                                                                                        
                                                                                                                             Google in the Enterprise


                                                                                                                            Subscribe Today


                                                                                                                       Follow us however you choose!




http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]
Defining SQL Server 2008 Policies | TechRepublic



     A Condition is a set of criteria defined on a Facet. A Facet is really nothing more than a SQL
     Server object that you can involve in a Policy. In the Create New Condition screen, I define a new
     Condition named NewStoredProcedureNames. I can define the criteria for my new Condition in the
     Expressions section. Each Facet (Stored Procedure in this case) has a set of Fields for which
     condition expressions can be defined. For this particular Condition, I want to set criteria so that any
     new Stored Procedure name begins with usp_, and this is fairly straightforward to do through the          Media Gallery
     editor.




                                                                                                                     PHOTO GALLERY (1 of 15)
                                                                                                                     Curiosity's autonomous
                                                                                                                     'seven minutes of...

                                                                                                                           More Galleries »




                                                                                                                     VIDEO (1 of 13)
                                                                                                                     Cracking Open: HTC Titan II

                                                                                                                            More Videos »



     Now that I have my Condition defined, I can create a new Policy.                                          Hot Questions                     View All

     Right click the Policy folder and select New Policy. In the Open Policy window, choose the                       SSL redirection
     NewProcedureNames check condition we just created. Choose the On change: prevent Evaluation
                                                                                                                3
     Mode. This mode will evaluate the Policy when a new stored procedure is created, and if the
     procedure does not start with usp_, an error will be thrown and the new procedure will be
                                                                                                                3     Switching from a Job to a career in
     disallowed. Be sure to click the Enabled box to enable the Policy.
                                                                                                                      the IT field: Need an IT pro's
                                                                                                                      advice


                                                                                                                2     windows 7 won't shutdown and
                                                                                                                      keeps switching on


                                                                                                                2     can anyone suggest if any such
                                                                                                                      software exist with similar
                                                                                                                      functionality?


                                                                                                               Ask a Question



                                                                                                               Hot Discussions                   View All


                                                                                                               221    Should developers be sued for
                                                                                                                      security holes?


                                                                                                                79    The sitting duck that is open
                                                                                                                      source


                                                                                                                27    Five fast Windows desktop search
                                                                                                                      utilities
     To test my new Policy, I write a script to create a new stored procedure named GetCurrentDate
     that returns the current date. When I attempt to execute the script, I receive an error message
     letting me know that I have violated a Policy. For a friendlier message, you can define informative        30    Is the death knell sounding for
     descriptions with your Policies so that the user is given more instruction as to what condition was              traditional antivirus?



http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]
Defining SQL Server 2008 Policies | TechRepublic


     violated.
                                                                                                                     Start a Discussion



                                                                                                                     Blog Archive

                                                                                                                       August 2012        December 2011
                                                                                                                       July 2012          November 2011
                                                                                                                       June 2012          October 2011
                                                                                                                       May 2012           September 2011
                                                                                                                       April 2012         August 2011
                                                                                                                       March 2012         July 2011
                                                                                                                       February 2012      June 2011
                                                                                                                       January 2012


     Here is the text of the procedure I attempted to create above.

     CREATE PROCEDURE GetCurrentDate

     AS

     SELECT CAST(GETDATE() AS DATE)

     Conclusion
     Today I defined a simple Policy to prevent the creation of any new stored procedure that does not
     begin with usp_. The great thing about Policy-Based management is how complex you can define
     your Policies to adhere to your defined database policies. The more you play around with defining
     policies, the more creative and effective you’ll become at defining your own polices, so take
     advantage as soon as you can!


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




                     About Tim Chapman
                        Full Bio     Contact




                   Introduction to Policy-Based                  See what process is using a
                   Management in SQL Server                      TCP port in Windows Server
                   2008                                          2008




          2          Join the conversation!                                                Add Your Opinion
      Comments       Follow via:



       Staff Picks     Top Rated       Most Recent      My Contacts                               See All Comments




                       Initial revenue                                                                     0
                       louren15 11th Jan                                                              Votes


              Plus, if they develop enough of a reputation, they are often given the first version, so



http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]
Defining SQL Server 2008 Policies | TechRepublic

            they don???t even provide the initial revenue. They are, in effect, an extension of the
            marketing machine for... Read Whole Comment +


                View in thread




                      Thanks for excellent article                                                         0
                      chintak.chhapia@... 22nd Oct 2008                                               Votes



            Thanks for excellent article, but this will not enforce proedure name to start with
            usp_ only it will enforce usp.

            Can we specify the except clause on condition value?


                View in thread




                                                   See all comments



     Join the TechRepublic Community and join the conversation! Signing-up is
     free and quick, Do it now, we want to hear your opinion.

       Join       Login




http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]

Más contenido relacionado

Similar a Defining sql server 2008 policies tech republic

Introduction to policy based management in sql server 2008 tech-republic
Introduction to policy based management in sql server 2008   tech-republicIntroduction to policy based management in sql server 2008   tech-republic
Introduction to policy based management in sql server 2008 tech-republicKaing Menglieng
 
The Most Underutilized Configuration Management Features
The Most Underutilized Configuration Management Features  The Most Underutilized Configuration Management Features
The Most Underutilized Configuration Management Features Cireson
 
Design Summit - Advanced policy state management - John Hardy
Design Summit - Advanced policy state management - John HardyDesign Summit - Advanced policy state management - John Hardy
Design Summit - Advanced policy state management - John HardyManageIQ
 
Journey to Azure Sentinel
Journey to Azure SentinelJourney to Azure Sentinel
Journey to Azure SentinelCheah Eng Soon
 
Phase One Rules Demo w corp Overview
Phase One Rules Demo w corp OverviewPhase One Rules Demo w corp Overview
Phase One Rules Demo w corp OverviewStan Ascher
 
Dynamic Data Masking - Breakthrough Innovation in Application Security
Dynamic Data Masking - Breakthrough Innovation in Application SecurityDynamic Data Masking - Breakthrough Innovation in Application Security
Dynamic Data Masking - Breakthrough Innovation in Application SecurityDobler Consulting
 
Biz Talk Demo slideshare
Biz Talk Demo slideshareBiz Talk Demo slideshare
Biz Talk Demo slideshareerios
 
Break the-rules
Break the-rulesBreak the-rules
Break the-rulesGokul Nk
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process ImplementationMustafa Jarrar
 
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
 
Rules in Artificial Intelligence
Rules in Artificial IntelligenceRules in Artificial Intelligence
Rules in Artificial IntelligencePierre Feillet
 
IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015
IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015
IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015IBM France Lab
 
Jboss drools 3 key drools functionalities
Jboss drools   3 key drools functionalitiesJboss drools   3 key drools functionalities
Jboss drools 3 key drools functionalitiesZoran Hristov
 
Jboss drools 4 scope - benefits, shortfalls
Jboss drools   4 scope - benefits, shortfalls Jboss drools   4 scope - benefits, shortfalls
Jboss drools 4 scope - benefits, shortfalls Zoran Hristov
 
Bpm10gperformancetuning 476208
Bpm10gperformancetuning 476208Bpm10gperformancetuning 476208
Bpm10gperformancetuning 476208Vibhor Rastogi
 
The Future of the Rules module in Drupal 8
The Future of the Rules module in Drupal 8The Future of the Rules module in Drupal 8
The Future of the Rules module in Drupal 8Stan Ascher
 
OTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least PrivilegeOTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least PrivilegeBiju Thomas
 
ServerTemplate Deep Dive
ServerTemplate Deep DiveServerTemplate Deep Dive
ServerTemplate Deep DiveRightScale
 
01_Enterprise_Applications_RIO.ppt
01_Enterprise_Applications_RIO.ppt01_Enterprise_Applications_RIO.ppt
01_Enterprise_Applications_RIO.pptPonnieaswari M.S
 

Similar a Defining sql server 2008 policies tech republic (20)

Introduction to policy based management in sql server 2008 tech-republic
Introduction to policy based management in sql server 2008   tech-republicIntroduction to policy based management in sql server 2008   tech-republic
Introduction to policy based management in sql server 2008 tech-republic
 
The Most Underutilized Configuration Management Features
The Most Underutilized Configuration Management Features  The Most Underutilized Configuration Management Features
The Most Underutilized Configuration Management Features
 
Design Summit - Advanced policy state management - John Hardy
Design Summit - Advanced policy state management - John HardyDesign Summit - Advanced policy state management - John Hardy
Design Summit - Advanced policy state management - John Hardy
 
Journey to Azure Sentinel
Journey to Azure SentinelJourney to Azure Sentinel
Journey to Azure Sentinel
 
Phase One Rules Demo w corp Overview
Phase One Rules Demo w corp OverviewPhase One Rules Demo w corp Overview
Phase One Rules Demo w corp Overview
 
Dynamic Data Masking - Breakthrough Innovation in Application Security
Dynamic Data Masking - Breakthrough Innovation in Application SecurityDynamic Data Masking - Breakthrough Innovation in Application Security
Dynamic Data Masking - Breakthrough Innovation in Application Security
 
Biz Talk Demo slideshare
Biz Talk Demo slideshareBiz Talk Demo slideshare
Biz Talk Demo slideshare
 
Break the-rules
Break the-rulesBreak the-rules
Break the-rules
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process Implementation
 
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
 
Rules in Artificial Intelligence
Rules in Artificial IntelligenceRules in Artificial Intelligence
Rules in Artificial Intelligence
 
IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015
IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015
IBM Paris Bluemix Meetup #12 - Ecole 42 - 9 décembre 2015
 
Jboss drools 3 key drools functionalities
Jboss drools   3 key drools functionalitiesJboss drools   3 key drools functionalities
Jboss drools 3 key drools functionalities
 
Jboss drools 4 scope - benefits, shortfalls
Jboss drools   4 scope - benefits, shortfalls Jboss drools   4 scope - benefits, shortfalls
Jboss drools 4 scope - benefits, shortfalls
 
Bpm10gperformancetuning 476208
Bpm10gperformancetuning 476208Bpm10gperformancetuning 476208
Bpm10gperformancetuning 476208
 
The Future of the Rules module in Drupal 8
The Future of the Rules module in Drupal 8The Future of the Rules module in Drupal 8
The Future of the Rules module in Drupal 8
 
OTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least PrivilegeOTech magazine article - Principle of Least Privilege
OTech magazine article - Principle of Least Privilege
 
ServerTemplate Deep Dive
ServerTemplate Deep DiveServerTemplate Deep Dive
ServerTemplate Deep Dive
 
MySQL Devops Webinar
MySQL Devops WebinarMySQL Devops Webinar
MySQL Devops Webinar
 
01_Enterprise_Applications_RIO.ppt
01_Enterprise_Applications_RIO.ppt01_Enterprise_Applications_RIO.ppt
01_Enterprise_Applications_RIO.ppt
 

Más de Kaing 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
 
Optimize sql server queries with these advanced tuning techniques tech repu
Optimize sql server queries with these advanced tuning techniques   tech repuOptimize sql server queries with these advanced tuning techniques   tech repu
Optimize sql server queries with these advanced tuning techniques tech repuKaing Menglieng
 

Más de Kaing Menglieng (20)

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 -
 
Optimize sql server queries with these advanced tuning techniques tech repu
Optimize sql server queries with these advanced tuning techniques   tech repuOptimize sql server queries with these advanced tuning techniques   tech repu
Optimize sql server queries with these advanced tuning techniques tech repu
 

Defining sql server 2008 policies tech republic

  • 1. Defining SQL Server 2008 Policies | 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 Defining SQL Server 2008 Policies By Tim Chapman October 20, 2008, 10:41 AM PDT Takeaway: You’ve already had a brief introduction to Policy Based Management, a new SQL Server 2008 feature that allows the Database Administrator the ability to define and enforce policies through the database engine.Tim Chapman now shows how you can use SQL Server Management Studio to define your own policies. In a previous article, I gave a brief introduction to Policy Based Management, a new SQL Server 2008 feature that allows the Database Administrator the ability to define and enforce policies through the database engine. In today’s article I’ll look at how you can use SQL Server Btrieve 6.15 Forever Management Studio to define your own policies. Still using Btrieve? So are we! Get the Ultimate Define your Policies Btrieve Patch pervasivedb.com/btrieve The most challenging part of creating an effective database policy system is deciding what exactly Google Docs For Business it is your want to create policies for. SQL Server 2008 provides a large range of Facets (objects) Start with 5 GB of Included Storage Get for which conditions and policies can be defined for, so it will absolutely be worth the effort to take Additional 20 GB Just $4/month! some time to map out what Policies you want to enforce. www.google.com/apps re-lion Builder To define a new Policy, open SQL Server Management Studio and navigate to the Management Leading in easy to use terrain database node in Object Explorer. Before I can define a Policy, I’ll first need to define a new Condition and generation tools can easily do so by right-clicking on the Conditions folder under the Policy Management folder. www.re-lion.com Keep Up with TechRepublic Five Apps Google in the Enterprise Subscribe Today Follow us however you choose! http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]
  • 2. Defining SQL Server 2008 Policies | TechRepublic A Condition is a set of criteria defined on a Facet. A Facet is really nothing more than a SQL Server object that you can involve in a Policy. In the Create New Condition screen, I define a new Condition named NewStoredProcedureNames. I can define the criteria for my new Condition in the Expressions section. Each Facet (Stored Procedure in this case) has a set of Fields for which condition expressions can be defined. For this particular Condition, I want to set criteria so that any new Stored Procedure name begins with usp_, and this is fairly straightforward to do through the Media Gallery editor. PHOTO GALLERY (1 of 15) Curiosity's autonomous 'seven minutes of... More Galleries » VIDEO (1 of 13) Cracking Open: HTC Titan II More Videos » Now that I have my Condition defined, I can create a new Policy. Hot Questions View All Right click the Policy folder and select New Policy. In the Open Policy window, choose the SSL redirection NewProcedureNames check condition we just created. Choose the On change: prevent Evaluation 3 Mode. This mode will evaluate the Policy when a new stored procedure is created, and if the procedure does not start with usp_, an error will be thrown and the new procedure will be 3 Switching from a Job to a career in disallowed. Be sure to click the Enabled box to enable the Policy. the IT field: Need an IT pro's advice 2 windows 7 won't shutdown and keeps switching on 2 can anyone suggest if any such software exist with similar functionality? Ask a Question Hot Discussions View All 221 Should developers be sued for security holes? 79 The sitting duck that is open source 27 Five fast Windows desktop search utilities To test my new Policy, I write a script to create a new stored procedure named GetCurrentDate that returns the current date. When I attempt to execute the script, I receive an error message letting me know that I have violated a Policy. For a friendlier message, you can define informative 30 Is the death knell sounding for descriptions with your Policies so that the user is given more instruction as to what condition was traditional antivirus? http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]
  • 3. Defining SQL Server 2008 Policies | TechRepublic violated. Start a Discussion Blog Archive August 2012 December 2011 July 2012 November 2011 June 2012 October 2011 May 2012 September 2011 April 2012 August 2011 March 2012 July 2011 February 2012 June 2011 January 2012 Here is the text of the procedure I attempted to create above. CREATE PROCEDURE GetCurrentDate AS SELECT CAST(GETDATE() AS DATE) Conclusion Today I defined a simple Policy to prevent the creation of any new stored procedure that does not begin with usp_. The great thing about Policy-Based management is how complex you can define your Policies to adhere to your defined database policies. The more you play around with defining policies, the more creative and effective you’ll become at defining your own polices, so take advantage as soon as you can! Get IT Tips, news, and reviews delivered directly to your inbox by subscribing to TechRepublic’s free newsletters. About Tim Chapman Full Bio Contact Introduction to Policy-Based See what process is using a Management in SQL Server TCP port in Windows Server 2008 2008 2 Join the conversation! Add Your Opinion Comments Follow via: Staff Picks Top Rated Most Recent My Contacts See All Comments Initial revenue 0 louren15 11th Jan Votes Plus, if they develop enough of a reputation, they are often given the first version, so http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]
  • 4. Defining SQL Server 2008 Policies | TechRepublic they don???t even provide the initial revenue. They are, in effect, an extension of the marketing machine for... Read Whole Comment + View in thread Thanks for excellent article 0 chintak.chhapia@... 22nd Oct 2008 Votes Thanks for excellent article, but this will not enforce proedure name to start with usp_ only it will enforce usp. Can we specify the except clause on condition value? View in thread See all comments Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion. Join Login http://www.techrepublic.com/blog/datacenter/defining-sql-server-2008-policies/464[08/29/2012 3:46:42 PM]