{"id":929,"date":"2005-08-01T23:55:30","date_gmt":"2005-08-01T23:55:30","guid":{"rendered":"\/blogs\/bobb\/post\/Im-not-sysadmin-I-just-play-one-on-TV.aspx"},"modified":"2005-08-01T23:55:30","modified_gmt":"2005-08-01T23:55:30","slug":"im-not-sysadmin-i-just-play-one-on-tv","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/","title":{"rendered":"I&#8217;m not sysadmin, I just play one on TV"},"content":{"rendered":"<p><P>I really like the feature known as &#8220;All Permissions Grantable&#8221; in which any permission can be managed using the GRANT verb, because there are no &#8220;magic&#8221; logins or users anymore. The coolest thing&nbsp;is that all server roles are now defined in terms of the permissions they have; this chart is in the BOL. In it, sysadmin equates to CONTROL SERVER. <\/P><br \/>\n<P>But I did notice when reading through BOL that many things are defined as &#8220;this can only be done by sysadmin&#8221;. But what if I&#8217;m not sysadmin and I do have CONTROL SERVER? Can I do those &#8220;sysadmin only&#8220; things? Or the collolary: if I am granted CONTROL SERVER, do I become sysadmin (that is, show up in the system tables as sysadmin).<\/P><br \/>\n<P>At least with the first three items I tried, I can perform the &#8220;sysadmin only&#8221; function but I&#8217;m not sysadmin. Good thing to remember when looking through an instance for high privilege users, to make sure&nbsp;some logins&nbsp;don&#8217;t slip through the cracks. Here&#8217;s example:<\/P><br \/>\n<P>create login bob with password = &#8216;StrongPW1&#8217; <BR>go <BR><BR>grant control server to bob <BR>go <BR><BR>&#8212; login as bob or <BR>execute as login=&#8217;bob&#8217; <BR>go <BR>create database sample <BR>go <BR>&#8212; this works for bob <BR>alter database sample set trustworthy on <BR>go <BR><BR>&#8212; bob is not a member of sysadmin server role <BR>&#8212; BOL says he must be <BR>sp_helpsrvrolemember &#8216;sysadmin&#8217; <BR>go<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I really like the feature known as &#8220;All Permissions Grantable&#8221; in which any permission can be managed using the GRANT verb, because there are no &#8220;magic&#8221; logins or users anymore. The coolest thing&nbsp;is that all server roles are now defined in terms of the permissions they have; this chart is in the BOL. In it, [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-929","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>I&#039;m not sysadmin, I just play one on TV - Bob Beauchemin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I&#039;m not sysadmin, I just play one on TV - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"I really like the feature known as &#8220;All Permissions Grantable&#8221; in which any permission can be managed using the GRANT verb, because there are no &#8220;magic&#8221; logins or users anymore. The coolest thing&nbsp;is that all server roles are now defined in terms of the permissions they have; this chart is in the BOL. In it, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2005-08-01T23:55:30+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/\",\"name\":\"I'm not sysadmin, I just play one on TV - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2005-08-01T23:55:30+00:00\",\"dateModified\":\"2005-08-01T23:55:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/uncategorized\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"I&#8217;m not sysadmin, I just play one on TV\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"I'm not sysadmin, I just play one on TV - Bob Beauchemin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/","og_locale":"en_US","og_type":"article","og_title":"I'm not sysadmin, I just play one on TV - Bob Beauchemin","og_description":"I really like the feature known as &#8220;All Permissions Grantable&#8221; in which any permission can be managed using the GRANT verb, because there are no &#8220;magic&#8221; logins or users anymore. The coolest thing&nbsp;is that all server roles are now defined in terms of the permissions they have; this chart is in the BOL. In it, [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/","og_site_name":"Bob Beauchemin","article_published_time":"2005-08-01T23:55:30+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/","name":"I'm not sysadmin, I just play one on TV - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2005-08-01T23:55:30+00:00","dateModified":"2005-08-01T23:55:30+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/im-not-sysadmin-i-just-play-one-on-tv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"Uncategorized","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/uncategorized\/"},{"@type":"ListItem","position":3,"name":"I&#8217;m not sysadmin, I just play one on TV"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=929"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/929\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}