With 2008 - What would be the 'best practice' approach for giving a principal access to system views

I want to setup a job that runs a few select statements from several system management views such as those listed below.  Its basically going to gather various metrics about the server, a few different databases and jobs.
msdb.dbo.sysjobs
msdb.dbo.sysjobhistory
sys.dm_db_missing_index_groups
sys.dm_db_missing_index_group_stats
sys.dm_db_missing_index_details
sys.databases
sys.dm_exec_query_stats
sys.dm_exec_sql_text
sys.dm_exec_query_plan
dbo.sysfiles
sys.indexes
sys.objects
So, there a number of instance-level permissions that are needed, mainly VIEW SERVER STATE
https://msdn.microsoft.com/en-us/library/ms186717.aspx
Granting these permissions to a single login seems like introducing a maintenance headache for later.  What about a server role?
Correct me if Im wrong, but this is a new feature of 2012 and above, the ability to create user-defined server roles.
Prior to version 2012, I will just have to settle for granting these instance-level permissions to individual logins.  There wont be many logins that need this kind of permissions, but id rather assign them at a role level then add logins to that role.
 Then again, there is little point in creating a seperate role if there is only 1...and maybe 2 logins that might need this role?
New for 2012
http://www.mssqltips.com/sqlservertip/2699/sql-server-user-defined-server-roles/

Just as any Active Directory Administrator will tell you you should indeed stick to the rule - "user in role- permissions to role" - in AD terms "A-G/DL-P. And since this is very much possible since SQL Server 2012 why not just do that. You
lose nothing if you don't ever change that one single user. In the end you would only expect roles to have permissions and save some time when searching for permission problems.
i.e.
USE [master]
GO
CREATE SERVER ROLE [role_ServerMonitorUsers]
GO
GRANT VIEW SERVER STATE TO [role_ServerMonitorUsers]
GO
ALTER SERVER ROLE [role_ServerMonitorUsers]
ADD MEMBER [Bob]
GO
In security standardization is just as much key as in administration in general. So even if it does not really matter, it may matter in the long run. :)
Andreas Wolter (Blog |
Twitter)
MCSM: Microsoft Certified Solutions Master Data Platform, MCM, MVP
www.SarpedonQualityLab.com |
www.SQL-Server-Master-Class.com

Similar Messages

  • Had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

    I thought elements were simple but maybe it is just me.  Having problems moving photos from iphoto to elements

    Duplicate post; see:
    had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

  • What would be the best practice?

    Hello,
    Sorry for the question, but I am new in JSP. I am concerned about the architeture of my application, and looking for the best practices.
    What are the best practices for persistence in a relational database? I need to make queries and map the tables into objects, but wich approach should I take?
    Certainly I do not want to make a page full of scriptlets... ;)
    Thanks

    There are several technologies available to help map objects from relational dbs to objects.
    Object Relational Bridge - http://db.apache.org/ojb/
    Jaxor - http://jaxor.sourceforge.net/
    Hibernate - http://hibernate.bluemars.net/
    Castor - http://castor.exolab.org/
    Just to name a few. Each has its strengths and weaknesses.
    Those will help you create objects from your relational tables. From there it becomes a matter of creating a model for your application. Here are a few good links which explain some strategies for accomplishing this.
    Front Controller Pattern - http://java.sun.com/blueprints/corej2eepatterns/Patterns/FrontController.html
    Data Access Objects - http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    Or if your app is very simple you could probably get away with calling your data objects directly from your JSP. If you decide something like a front-controller is appropriate for your app you should look into the Apache Struts framework (http://jakarta.apache.org/struts/) which will facilitate the ubiquitous MVC pattern. There is also plenty of info available on the site as to what MVC is if you aren't familar with it.
    Hope that helps,
    gamlin

  • What would be the best tablet/notebook for Photoshop CS4 or Photoshop Elements 10

    When we travel, I love to work with my pictures to create hard bound book pages as we go.  I have wanted a tablet/notebook that I can use a stylis pen to mark my selections but have no idea where to start.  I need a pretty powerful machine because some of my projects get rather large.   Size isn't so much a problem unless someone recommends the new Dell that is a bit too small.  That one is just too small and my eyesight isn't what it used to be.   Any suggestions would be very welcome.  We already have a laptop but I really want something that I can draw on the tablet to make my many layer selections.    I'm not all an expert when it comes to hardware.  I use both Elements 10 and CS4 on my Windows 7 64 bit machine and use them both but would probably only load Elements 10 on any new device I buy.  It's just easier and for what I'm doing, it's the best solution.
    Karen

    I had a Wacom tablet that I used with my PC and really didn't like it.  I would much rather had an image on the tablet that I could draw around........and even though one of those exists, it's way out of my price range.   What I'm looking for is a larger version of the Dell Inspiron Duo (1090) 10.1" display 1366/768 touch screen convertible tablet.    It's easy to go from regular mode to touch screen mode by flipping the screen.   This one however has a screen that's just too small for me to use and the keyboard is way to tiny for my big hands.  I know I can call Dell and find out what they recommend but I had thought that some photoshop users had already encountered this and might just have an answer.
    As for the iPad, I have one of those and it's great for apps but not at all for playing around with photoshop or any of my other graphic packages.  I use it to grab my mail at wi-fi sites while we're on cruises where it doesn't cost an arm and leg for using the connection.   The price of a cup of coffee usually gets us enough time to download all of our mail and then head out touring.
    Thanks for taking the time to respond.
    Karen

  • What would be the best network setup for me?

    I am planning a network system for my medical practise. The network will comprise a Macbook Pro(myself) , an Imac(receptionist) and a Macbook for occassional admin use.
    I need some advice as to the best way to store the shared data. I will be using Filemaker Pro and will be storing patient appointments, demographics as well as clinical info, visit notes and investigations.
    I am considering 3 possible setups
    Have shared database on the Imac, backed up by a 500 gigabyte hard disk, or possibly a time capsule, using Time machine.
    Have an ethernet hard disk for storage, but then I probably would need to have a different backup system.
    Use a mac mini as a file server.
    Or use an altogether different setup.
    I would appreciate suggestions.
    Thank you
    ajdk

    Hi ajdk-
    Then it comes down to your morals and how carefully you want or need to protect patient confidentiality. Your basic network concept should work.
    As a start, storing any patient data with regular business data and emails is asking for a security breach.
    Make sure to back up your back ups and store said backup securely in a media-rated fire proof vault.
    These documents may help:
    Creating a small Ethernet network
    AirPort Base Station and Network Setup Guide (Mac OS X 10.4 or earlier)
    Luck-
    -DP

  • With SO MUCH photo editing software available, what would be the best for me if I am a digital camera newby? I do not need Photoshop CC! I do not want to spend $700 bucks! My camera is a Nikon D90. Please help.

    With SO MUCH photo editing software available, what would be the best for me if I am a digital camera newby? I do not need Photoshop CC! I do not want to spend $700 bucks! My camera is a Nikon D90. Please help.

    Where did you come up with the $700 figure?
    Photography plan - $9.99/month or $119/year - Creative Cloud Photography plan : Adobe Creative Cloud
    Single App - $19.99/month
    Complete plan - $49.99/month or $599/yr - Creative Cloud free trial & plans : Adobe Creative Cloud
    Ah - If you wish to cancel early yeah $74.99 which would total for the year at $899.88. But that final total would be if you canceled in the 12th month but if you plan on keeping it that long might as well go for the annual contract. Then cancel at the end of the term limit if you need to.
    If you are not sure what to get, Either Elements as was suggested by Peru Bob or the photography plan.

  • Just bought a 3TB Time Capsule for a small office. Will have 4 users with MacBooks. What would ne the best setup for time machine individual backups and internet sharing in a secure way?

    Just bought a 3TB Time Capsule for a small office. Will have 4 users with MacBooks. What would ne the best setup for time machine individual backups and internet sharing in a secure way?

    Set up each Mac for Time Machine backups in the normal way.  Time Machine will keep each backup separate on the Time Capsule, so users will only be able to see the backups of their own Mac.
    Yes....there are convoluted workarounds that might allow one user to see the backups of another.....IF...they know the administrator password of the "other" Mac.
    As far as Internet sharing, all users will have access to the Internet if they have a wired or wireless connection. If a Mac connects using wireless, it is possible to limit the time that they are allowed to connect to the network.
    For example, you might limit the ability to connect to the wireless from say each Weekday from 8 AM to 6 PM.
    With a wired Ethernet connection, you cannot limit access times to the Internet.

  • I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.

    I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.
    From what I read, I have 2 choices: 1. to install OSX and then upgrade to Mavericks, but I'm not sure if this would be possible (to upgrade directly from OSX to Mavericks); and 2. to use a software called Super Duper.
    I wouldn't like to have to use a third party software to do this, so the question is: is there a better way to install directly the Mavericks not having to use a third party software?

    Install the new drive in the computer.
    Install the old drive in an external USB or Firewire enclosure.
    Boot the computer from the Recovery HD on the external drive.
    Use Disk Utility to partition and format the new internal drive.
    Clone your external drive to the internal drive.
    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the Recovery HD on the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the Recovery HD then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
      4. Select the volume you just created (this is the sub-entry under the
          drive entry) from the left side list. Click on the Erase tab in the DU main
          window.
      5. Set the format type to Mac OS Extended (Journaled.) Click on the
          Options button, check the button for Zero Data and click on OK to
          return to the Erase window.
      6. Click on the Erase button. The format process can take up to several
          hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
      1. Using Disk Utility still opened.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • Does Adobe Reader for iOS have the ability to open inbedded links to additional PDF docs?  If not, then what would be the best way to use these already created PDF's?

    Does Adobe Reader for iOS have the ability to open inbedded links created with Acrobat Standard to additional PDF docs?  If not, then what would be the best way to use these already created PDF's on an I Pad?

    driddy61,
    As of June 2014, none of the Adobe Reader mobile products support the hyperlink action for opening a separate PDF document.
    Adobe Reader for iOS
    Adobe Reader for Android
    Adobe Reader Touch for Windows 8
    In addition, the Reader mobile products do not open multiple windows/documents simultaneously, which would make the navigation between PDF documents nearly impossible. (Once a hyperlink takes you to a different PDF document, you have no way to go back to the original PDF document.)
    The only Adobe Reader product that fulfills your department's requirements is Adobe Reader XI (mostly for Windows/Mac desktop/laptop computers).  Acrobat Pro and Standard are paid products.
    Because you are in search of a less expensive device for your department, you could get a Windows tablet instead of a Windows desktop/laptop computer. Microsoft Surface Pro (that you've mentioned in your previous reply) is just one example.  You can also find other less expensive Windows tablets.
    Tablets
    However, please keep in mind that there are two different types of Windows tablets running two different operating systems.
    (a) A Windows tablet with an Intel-based processor running Windows 8.1 Pro
    Example: Surface Pro 3
    You can install and run traditional desktop apps (e.g. Adobe Reader XI) and new Windows Store apps ("Modern" or "Metro-style" apps).
    (b) A Windows tablet with an ARM-based processor running Windows RT 8.1
    Example: Surface 2
    You can only install and run Windows Store apps (e.g. Adobe Reader Touch) but not traditional desktop apps like Adobe Reader XI.
    In general, type (b) tablets are more affordable than type (a) tablets.  However, if you want to run Adobe Reader XI, you do need to check the technical specification of each tablet and make sure the following conditions are met.
    Processor: Intel
    Operating system:  Windows 8/8.1 or Windows 8/8.1 Pro, not RT
    Hope this helps you choose the right device for your department.  Please let us know if you have any questions about system requirements or supported features in the Adobe Reader products.

  • What would be the best way to trigger a series of cascading SPD workflows ?

    I have a request to have security setup on a series of folders..
    but the start of the security has to wait until the new site workflow is completed,  then once the site is available then the next workflow sets the security on the 1st folder  then once the security WF on the 1st folder is completed, then the
    2nd workflow starts,  and sets up the security for the 2nd folder, then once that workflow  is done then the 3rd folders security workflow is triggered and security is setup , then the 4th WF starts once the 3rd WF is completed, and then the security
    is set on the 4th WF, and then once it is completed then the 5th WF is started... this pattern continues until the last folder security is setup and then the WF to email me is triggered..
    basically they go like this
    1WF  > 2WF > 3WF > 4WF > 5WF > 6WF > 30Wf completed cycle of Security Setup
    What would be the best way to set this up to have the series of workflows trigger after a WF is completed

    Hi,
    According to your post, my understanding is that you want to trigger a series of cascading SharePoint workflows.
    You need to set parameter: Processed = No/false in each workflow to trigger the next one.
    It is similar to the For Each loop workflow in SharePoint 2010.
    For more information, you can refer to:
    How-To: For Each loop with SharePoint Designer 2010 Workflows to update multiple items
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • What would be the best Memory to purchase for my iMac 7.1 I want to upgrade from Leopard to Snow Leopard or Lion

    What would be the best Memory to purchase for my iMac 7.1. I want to upgrade from OS Leopard to Snow Leopard or Lion?

    Crucial.com and macsales.com (OWC) sell RAM tested to work with Macs.  Prices are good and the sites will guide you to the maximum you can install (even if the "official number" from Apple release at time of system design is different).

  • I recently purchased a Mac Book Air and wanted to know what would be the best external hard drive to buy as far as the brand and GB or TB are concerned? I will basically just be storing music, papers, and a lot of pictures.

    I recently purchased a Mac Book Air and wanted to know what would be the best external hard drive to buy as far as the brand and GB or TB are concerned? I will basically just be storing music, papers, and a lot of pictures. Also, how should I go about charging my computer? Should I wait until it is close to dying and then charge it?

    I have had good success with HGST and Seagate HDDs.  I suggest a HDD that is powered by the MBA eliminating the need for an AC cord.  They now come up to 1.5 TB in capacity.  In my opinion, one cannot have too much storage.  If necessary, let your bank account be your guide.
    Ciao.

  • Looking to upgrade my OS from 10.5.8 to something newer, what would be the best option?

    I would like to upgrade my operating system, but not sure what would be the best option. I have had the computer for several years and haven't had a problem, I just think it's time to upgrade. Any suggestions?

    Which model iMac do you have?
    The best option would be the one (OS) that meets your needs of what you want to do AND if you meet ALL the OS system requirements.  Suggest that you read the system requirements of the OS you are interested in to make sure you meet all the requirements both hardware & software.

  • HT3231 how do i   TRANSFER MY PHOTOS AND VIDEOS FROM MY MAC PRO POWERBOOK G4 TO MY NEW MACBOOK PRO,  WHAT WOULD BE THE BEST WAY,  THANKS

    I HAVE A MAC POWERBOOK G4 AND WOULD LIKE TO TRANSFER MY FILES, PHOTOS AND VIDS TO MY NEW MAC PRO,  WHAT WOULD BE THE BEST METHOD??  THANKS ROB

    I think the easiest way is to use a firewire cable (you will need on like this: http://www.google.com/products/catalog?q=Firewire+400+to+800+cable&oe=utf-8&rls= org.mozilla:en-US:official&client=firefox-a&um=1&ie=UTF-8&tbm=shop&cid=120962573 04625337030&sa=X&ei=PytQT9r4NtOBsgL9s_C6Dg&ved=0CHYQ8gIwAA).
    Power up the Power Mac G4 and hold the "T" key while it is booting (this puts the G4 notebook in Firewire Target Disk mode).  Connect the G4 notebook to the newer MacBook Pro and use the Migration assistant (/Applications/Utilities) OR browse through the files and copy what you want.

  • Shuffle 4th gen.+ Version Mac OS X 10.4.11. What would be the best solution?

    I am getting new Shuffle 4th Generation, but my Macbook is Version Mac OS X 10.4.11.
    What would be the best solution to make them to work together?

    Purchase and install a copy of Mac OS X 10.5 Leopard and upgrade it to 10.5.8.  You can still find retail copies of Leopard online at Amazon, eBay, and third party resellers sites. 
    However, before doing that, verify that your Mac can indeed run Leopard by meeting the following hardware requirements.
    Requirements for Mac OS X v10.5
    B-rock

Maybe you are looking for

  • Iweb website not showing up at all on any search engine

    Hello, I recently switched from Windows to a Mac (and its a big improvement, really pleased with it). As we run 2 tiny businesses, one of my first projects was to make 2 websites in iweb and publish them via ftp to the domains I purchased (both hoste

  • Forms 5 on Oracle 9i migrated from 8i: some experiences ?

    Hello, I would like to hear some experiences from some Forms gurus here, concerning to Forms 5/6i (C/S) on Oracle 8i when migrating to Oracle 9i. I know, Forms 5 has been looong desupported, but this is the situation I have to deal with and to which

  • Some problem,please a little help

    Hi everyone, I set the path in a file called jinit.bat saying c:\jdk1.3.1_01\bin,i am able to compile & run the program but i am not able to edit the same program or any other ,if i say edit JJJ.java it is saying ,bad command or file name ,i am not a

  • MYSQL error in JDeveloper 10g using ADF Swing

    I am trying to update data in mysql database. But the following error appears in JDeveloper 10g using ADF Swing Mysql library is mysql-connector-java-3.1.12 What is the problem ? INSERT and SELECT queries do not give errors. But UPDATE has problem. T

  • Default Operation in Breakdown Order

    Dear Masters, I am getting one operation as defqult in the order while creating an order which is having the text same as that in the order description. Why is the system adding this operation as default? What are the configural steps to be followed