{"id":6073,"date":"2022-08-31T10:20:53","date_gmt":"2022-08-31T10:20:53","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6073"},"modified":"2022-08-31T10:20:53","modified_gmt":"2022-08-31T10:20:53","slug":"sql-best-practice","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice","title":{"rendered":"SQL Best Practice"},"content":{"rendered":"<ol><li>Create 4 Drives\u00a0<ol><li>Data for SQL DB F:\\<\/li><li>Logs E:\\<\/li><li>TempDB G:\\<\/li><li>Backups H:\\<\/li><\/ol><\/li><\/ol><p>Install DB to F:\\MSSQLSERVER\\<\/p><p id=\"cpgIQVU\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"642\" class=\"alignnone size-full wp-image-6074  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33358edfa.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33358edfa.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33358edfa-300x205.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33358edfa-768x525.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p>Install Client Tools by Defaults and Anything else you might need<\/p><p id=\"rcaiMmv\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"645\" class=\"alignnone size-full wp-image-6075  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f333d69df3.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f333d69df3.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f333d69df3-300x206.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f333d69df3-768x527.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p>&nbsp;<\/p><p><strong>Setup GMSA service accounts for SQL Service and Agent<\/strong><\/p><p>[pastacode lang=&#8221;powershell&#8221; manual=&#8221;New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24&#8243; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p><p>You might need to create RootKeys<\/p><p>[pastacode lang=&#8221;powershell&#8221; manual=&#8221;Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p><p>Setup Service to this :<\/p><p id=\"mdZRstu\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"531\" class=\"alignnone size-full wp-image-6076  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f334fa4246.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f334fa4246.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f334fa4246-300x169.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f334fa4246-768x434.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p>&nbsp;<\/p><p id=\"xRlrSLP\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"659\" class=\"alignnone size-full wp-image-6077  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33556fec9.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33556fec9.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33556fec9-300x210.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33556fec9-768x538.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p>&nbsp;<\/p><p id=\"TuyZWDw\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"637\" class=\"alignnone size-full wp-image-6078  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f335cb0d17.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f335cb0d17.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f335cb0d17-300x203.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f335cb0d17-768x520.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p id=\"KjYrcZy\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"647\" class=\"alignnone size-full wp-image-6079  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336309149.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336309149.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336309149-300x206.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336309149-768x529.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"773\" class=\"alignnone size-full wp-image-6080  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336eb0b38.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336eb0b38.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336eb0b38-300x247.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f336eb0b38-768x632.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"823\" class=\"alignnone size-full wp-image-6081  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33782587d.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33782587d.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33782587d-300x263.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33782587d-768x672.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p>Create New\u00a0New DB called <strong>DBA<\/strong><\/p><p>Run this SQL query against DBA <a href=\"https:\/\/ola.hallengren.com\/\">SQL Server Backup, Integrity Check, Index and Statistics Maintenance (hallengren.com)<\/a> Schedule everything apart from DB Backups , weekly<\/p><p>Run this SQL query against DBA <a href=\"http:\/\/whoisactive.com\/\">http:\/\/whoisactive.com\/<\/a><\/p><p>Run this SQL query against DBA <a href=\"https:\/\/www.brentozar.com\/blitz\/\">https:\/\/www.brentozar.com\/blitz\/<\/a><\/p><p>&nbsp;<\/p><p><strong>Run These Queries<\/strong><\/p><p>[pastacode lang=&#8221;sql&#8221; manual=&#8221;exec%20sp_configure%20&#8217;show%20advanced%20options&#8217;%2C%201%0A%0Areconfigure%0A%0Aexec%20sp_configure%0A%0A%0A%0A%0Aexec%20sp_configure%20&#8217;remote%20admin%20connections&#8217;%2C%201%0A%0Areconfigure%0A%0Aexec%20sp_configure%0A%0A%0A%0A%0Aexec%20sp_configure%20&#8217;show%20advanced%20options&#8217;%2C%200%0A%0Areconfigure%0A%0Aexec%20sp_configure&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p><p><strong>Enable Trace Flags on Startup<\/strong><\/p><p><blockquote class=\"wp-embedded-content\" data-secret=\"qqW9uI7oUL\"><a href=\"https:\/\/www.sqlservercentral.com\/articles\/sql-server-trace-flags-complete-list-3\">SQL Server Trace Flags &#8211; Complete list<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;SQL Server Trace Flags - Complete list&#8221; &#8212; SQLServerCentral\" src=\"https:\/\/www.sqlservercentral.com\/articles\/sql-server-trace-flags-complete-list-3\/embed#?secret=ZO3WqNl9lF#?secret=qqW9uI7oUL\" data-secret=\"qqW9uI7oUL\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p><p id=\"mQXJjZC\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"605\" class=\"alignnone size-full wp-image-6082  img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f3387ceed2.png\" alt=\"\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f3387ceed2.png 940w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f3387ceed2-300x193.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f3387ceed2-768x494.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p><p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Create 4 Drives\u00a0Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need&nbsp;Setup GMSA service accounts for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3937,3938,591],"class_list":["post-6073","post","type-post","status-publish","format-standard","hentry","category-research","tag-best","tag-practice","tag-sql"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=&quot;powershell&quot; manual=&quot;New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]You might need to create RootKeys[pastacode lang=&quot;powershell&quot; manual=&quot;Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]Setup Service to this : Create New New DB called DBARun this\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/sql-best-practice\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SQL Best Practice | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=&quot;powershell&quot; manual=&quot;New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]You might need to create RootKeys[pastacode lang=&quot;powershell&quot; manual=&quot;Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]Setup Service to this : Create New New DB called DBARun this\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/sql-best-practice\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-08-31T10:20:53+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-08-31T10:20:53+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SQL Best Practice | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=&quot;powershell&quot; manual=&quot;New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]You might need to create RootKeys[pastacode lang=&quot;powershell&quot; manual=&quot;Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]Setup Service to this : Create New New DB called DBARun this\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#article\",\"name\":\"SQL Best Practice | Welcome to Pariswells.com\",\"headline\":\"SQL Best Practice\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/img_630f33358edfa.png\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice\\\/#articleImage\",\"width\":940,\"height\":642},\"datePublished\":\"2022-08-31T10:20:53+00:00\",\"dateModified\":\"2022-08-31T10:20:53+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#webpage\"},\"articleSection\":\"Research, best, practice, SQL\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#listItem\",\"name\":\"SQL Best Practice\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#listItem\",\"position\":3,\"name\":\"SQL Best Practice\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice\",\"name\":\"SQL Best Practice | Welcome to Pariswells.com\",\"description\":\"Create 4 Drives Data for SQL DB F:\\\\Logs E:\\\\TempDB G:\\\\Backups H:\\\\Install DB to F:\\\\MSSQLSERVER\\\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=\\\"powershell\\\" manual=\\\"New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24\\\" message=\\\"\\\" highlight=\\\"\\\" provider=\\\"manual\\\"\\\/]You might need to create RootKeys[pastacode lang=\\\"powershell\\\" manual=\\\"Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))\\\" message=\\\"\\\" highlight=\\\"\\\" provider=\\\"manual\\\"\\\/]Setup Service to this : Create New New DB called DBARun this\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/sql-best-practice#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2022-08-31T10:20:53+00:00\",\"dateModified\":\"2022-08-31T10:20:53+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SQL Best Practice | Welcome to Pariswells.com","description":"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=\"powershell\" manual=\"New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24\" message=\"\" highlight=\"\" provider=\"manual\"\/]You might need to create RootKeys[pastacode lang=\"powershell\" manual=\"Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))\" message=\"\" highlight=\"\" provider=\"manual\"\/]Setup Service to this : Create New New DB called DBARun this","canonical_url":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#article","name":"SQL Best Practice | Welcome to Pariswells.com","headline":"SQL Best Practice","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/08\/img_630f33358edfa.png","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice\/#articleImage","width":940,"height":642},"datePublished":"2022-08-31T10:20:53+00:00","dateModified":"2022-08-31T10:20:53+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#webpage"},"articleSection":"Research, best, practice, SQL"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#listItem","name":"SQL Best Practice"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#listItem","position":3,"name":"SQL Best Practice","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#webpage","url":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice","name":"SQL Best Practice | Welcome to Pariswells.com","description":"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=\"powershell\" manual=\"New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24\" message=\"\" highlight=\"\" provider=\"manual\"\/]You might need to create RootKeys[pastacode lang=\"powershell\" manual=\"Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))\" message=\"\" highlight=\"\" provider=\"manual\"\/]Setup Service to this : Create New New DB called DBARun this","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2022-08-31T10:20:53+00:00","dateModified":"2022-08-31T10:20:53+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"SQL Best Practice | Welcome to Pariswells.com","og:description":"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=&quot;powershell&quot; manual=&quot;New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]You might need to create RootKeys[pastacode lang=&quot;powershell&quot; manual=&quot;Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]Setup Service to this : Create New New DB called DBARun this","og:url":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice","article:published_time":"2022-08-31T10:20:53+00:00","article:modified_time":"2022-08-31T10:20:53+00:00","twitter:card":"summary","twitter:title":"SQL Best Practice | Welcome to Pariswells.com","twitter:description":"Create 4 Drives Data for SQL DB F:\\Logs E:\\TempDB G:\\Backups H:\\Install DB to F:\\MSSQLSERVER\\Install Client Tools by Defaults and Anything else you might need Setup GMSA service accounts for SQL Service and Agent[pastacode lang=&quot;powershell&quot; manual=&quot;New-ADServiceAccount%20gmsa_sql02%20-DNSHostName%20gmsa_sqlinstance.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24%0A%0ANew-ADServiceAccount%20gmsa_sql02agent%20-DNSHostName%20gmsa_sql02agent.domain.local%20-PrincipalsAllowedToRetrieveManagedPassword%20sqlservername%24&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]You might need to create RootKeys[pastacode lang=&quot;powershell&quot; manual=&quot;Add-KdsRootKey%20%E2%80%93EffectiveTime%20((get-date).addhours(-10))&quot; message=&quot;&quot; highlight=&quot;&quot; provider=&quot;manual&quot;\/]Setup Service to this : Create New New DB called DBARun this"},"aioseo_meta_data":{"post_id":"6073","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"},\"blockGraphs\":[]}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-08-31 10:08:29","updated":"2022-09-16 14:23:53","primary_term":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSQL Best Practice\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"SQL Best Practice","link":"https:\/\/pariswells.com\/blog\/research\/sql-best-practice"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6073"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6073\/revisions"}],"predecessor-version":[{"id":6083,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6073\/revisions\/6083"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}