Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to create Policies using PowerShell scripts Expand / Collapse
Author
Message
Posted Saturday, May 1, 2010 6:15 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:52 PM
Points: 417, Visits: 764
Comments posted to this topic are about the item How to create Policies using PowerShell scripts

Thanks
Jay
http://www.sqldbops.com
Post #914287
Posted Monday, May 3, 2010 8:06 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 9:32 PM
Points: 21,755, Visits: 15,459
Thanks for taking the time to share what you have learned with the community.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #915034
Posted Monday, May 3, 2010 8:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, August 6, 2010 11:15 AM
Points: 1, Visits: 2
Greetings! It is always a gesture of grace to contribute knowledge to a community of those who can most use it. I wish to just comment about the text itself. Please do not take this as offensive, or in any negative way. I have always been a mentor and a part of solutions, not the problem. So if you will...

May I suggest that if the original text was in a language other than English, that the person who is responsible for translation, pay closer attention to the results. Otherwise, may I suggest that the author be more diligent about proofreading the material.

I feel very strongly that the author is a very talented and knowledgeable individual; and even more praise is due for his efforts to help others in their endeavors. However, I also strongly believe that the audience is soon daunted by trying to translate the article, (at least grammatically), and therefore would quickly lose interest in completing the reading of the article. It is noble and kind to help, but it is tragic to consider that these efforts go to waste because they’re simply too difficult to read with any degree of continuity.
Post #915052
Posted Tuesday, May 4, 2010 11:48 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:52 PM
Points: 417, Visits: 764
Thanks for your comments & is helpful to correct my writing skills brion. Also for your information, it is not been translated from any other sources, I've written this script and got help from diffrenent resources to resolve the issues on the script. The script which I created was working fine when I execute it inside the Powershell window but the same script if you call it from DOS prompt it thrown error due to missing libraries, which Sethu helped to resolved.

Anyway thanks again for your comments...


Thanks
Jay
http://www.sqldbops.com
Post #915536
Posted Saturday, November 20, 2010 3:49 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, July 29, 2013 8:34 PM
Points: 110, Visits: 120
I have some few questions to the author with regards to the windows powershell scripts:

1) Can we integrate the powershell scripts to the Policy Management or shall I say can we add this script using the GUI in policy management?

2)How can we implement a policy in powershell script that upon creation of a certain store procedure which does not conforms to the performance best practices it will autmatically returned error and it shall not be created?

Thanks.
Post #1023973
Posted Thursday, December 30, 2010 10:53 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:52 PM
Points: 417, Visits: 764
Sorry for the delayed answer.
1) Can we integrate the powershell scripts to the Policy Management or shall I say can we add this script using the GUI in policy management?
[Answer]Per my knowledge, there is no option to integrate the powershell scripts in the PBM because the facets are predefined and can not be modified.

2)How can we implement a policy in powershell script that upon creation of a certain store procedure which does not conforms to the performance best practices it will autmatically returned error and it shall not be created?

[Answer]If I understood your question correctly, the answer is no, the policies can evaluate the created objects and defined facets.


Thanks
Jay
http://www.sqldbops.com
Post #1041049
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse