{"id":22,"date":"2009-04-16T23:26:14","date_gmt":"2009-04-16T22:26:14","guid":{"rendered":"https:\/\/harun.se\/blog\/?p=22"},"modified":"2009-04-16T23:27:02","modified_gmt":"2009-04-16T22:27:02","slug":"sql-2008-for-sccm-r2-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/harun.se\/blog\/?p=22","title":{"rendered":"SQL 2008 for SCCM R2 &#8211; STEP by STEP GUIDE"},"content":{"rendered":"<p>\u00a0<\/p>\n<p>1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SQL Server 2008\u00a0 Installation &amp; Provisioning<\/p>\n<p>\u00a01.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SQL Server 2008 Installation<br \/>\n\u00a01.1.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Pre-Installation tasks<br \/>\nReboot your machine prior to starting the SQL Server installation process to make sure that you do not have any pending reboot requests which will block the SQL Server installation process.<\/p>\n<p>Create following Service Accounts in the Domain: SQLAgent, SQLReporting, SQLService<\/p>\n<p>1.1.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Installation Step by Step<br \/>\nInstall Dotnet 3.5 SP1 and Windows Installer 4.5. These are the prerequisities for SQL 2008.<\/p>\n<p>\u00a0<\/p>\n<p>Start the setup from the media by running &#8220;setup.exe&#8221;.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/1.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"328\" height=\"393\" align=\"baseline\" \/><br \/>\n\u00a0<\/p>\n<p>\u00a0Once prerequisites have been installed, you will see the main installation screen, as shown below.<br \/>\nClick the New SQL Server stand-alone installation link to launch the SQL Server installation.\u00a0\u00a0\u00a0<br \/>\n\u00a0<br \/>\n<img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/2.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"487\" height=\"368\" align=\"baseline\" \/><br \/>\n\u00a0\u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0<br \/>\n\u00a0<br \/>\n\u00a0Installation will execute a system configuration check. Once the check completes successfully, your screen should look similar to the following: Click &#8220;OK&#8221;<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/3.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"488\" height=\"379\" align=\"baseline\" \/><br \/>\n\u00a0\u00a0 Accept the default product key Click NEXT.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/4.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"488\" height=\"342\" align=\"baseline\" \/><br \/>\n\u00a0\u00a0<br \/>\n\u00a0\u00a0 Select &#8220;I accept the license terms&#8221; as show below and then click Next.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/5.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"466\" height=\"353\" align=\"baseline\" \/><br \/>\n\u00a0\u00a0<br \/>\n\u00a0\u00a0 Click &#8220;Install&#8221; to &#8220;Setup Support Files&#8221;.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/6.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"491\" height=\"361\" align=\"baseline\" \/><br \/>\n\u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\nVerify that all the rules has status = Passed\u00a0 and click Next.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/7.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"489\" height=\"375\" align=\"baseline\" \/><br \/>\nSelect the SQL Server features and Change the Feature directories to the Disk path as shown below then click Next.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/8.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"493\" height=\"386\" align=\"baseline\" \/><br \/>\nSelect Default Instance as shown below then click Next.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/9.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"499\" height=\"375\" align=\"baseline\" \/>\u00a0<\/p>\n<p>Verify the disk space requirements and click Next.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/10.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"493\" height=\"388\" align=\"baseline\" \/><br \/>\nEnter the Domain service accounts that you created earlier for the appropriate services. When complete, your screen should look similar to the following:\u00a0 Click NEXT<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/11.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"492\" height=\"388\" align=\"baseline\" \/><\/p>\n<p>Select &#8220;Windows authentication mode&#8221; as shown below, Click &#8220;Add&#8221; and Choose &#8220;SCCM Admins&#8221; Group from the Active Directory as SQL Server Administrators.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/12.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"490\" height=\"376\" align=\"baseline\" \/><br \/>\nClick the Data Directories tab and Change the settings as shown Below, Click NEXT.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/13.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"495\" height=\"380\" align=\"baseline\" \/><\/p>\n<p>Choose &#8220;Install but do not Configure the report server&#8221; as shown below, Click NEXT.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/14.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"495\" height=\"397\" align=\"baseline\" \/><br \/>\nIn the &#8220;Error and Usage Reporting&#8221; section, Click NEXT.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/15.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"511\" height=\"381\" align=\"baseline\" \/><br \/>\nVerify that all the rules has status = Passed or Not applicable and click Next.<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/16.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"496\" height=\"391\" align=\"baseline\" \/><br \/>\n\u00a0<br \/>\nClick &#8220;Install&#8221; on the &#8220;Ready to Install&#8221; section<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/17.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"538\" height=\"403\" align=\"baseline\" \/><br \/>\nVerify that the Installation Status\u00a0 is = &#8220;Success&#8221; and Click NEXT<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/18.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"495\" height=\"373\" align=\"baseline\" \/><br \/>\nVerify the final installation report and Click &#8220;Close&#8221; to Finish the installation<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/19.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"487\" height=\"364\" align=\"baseline\" \/><br \/>\n\u00a0\u00a0<\/p>\n<p>\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0<br \/>\n\u00a0<br \/>\n\u00a0\u00a0\u00a0<br \/>\n1.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SQL Server 2008 Provisioning &amp; Optimization<br \/>\nPOST SCCM Installation steps on the Sql server for optimization purposes.<\/p>\n<p>1.2.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SCCM Database Parameters<br \/>\nCalculate the initial database size based on 2 MB per client (Workstations and Servers), e.g. 50,000 client * 2MB per client = 100,000 MB or 100 GB.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0\u00a0 Central Site<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"259\">\n<tbody>\n<tr>\n<td width=\"127\" valign=\"top\">Setting<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">Value<strong> <\/strong>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Name\u00a0<\/td>\n<td width=\"132\" valign=\"top\">SMS_123\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Data File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">100 Gb\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Log File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">20 Gb\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Autogrowth<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">By 10%, unrestricted growth\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Users\u00a0<\/td>\n<td width=\"132\" valign=\"top\">50\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n<p>Regional Primary Sites<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"259\">\n<tbody>\n<tr>\n<td width=\"127\" valign=\"top\">Setting<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">Value<strong> <\/strong>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Name\u00a0<\/td>\n<td width=\"132\" valign=\"top\">SMS_&lt;&lt;SiteCode&gt;&gt;\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Data File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">40 Gb\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Log File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">8 Gb\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Autogrowth<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">By 10%, unrestricted growth\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Users\u00a0<\/td>\n<td width=\"132\" valign=\"top\">20\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>4.2.1.1\u00a0\u00a0 Follow the steps defined below to do the changes on the SCCM Databases<\/p>\n<p>Click Start -&gt; Microsoft SQL Server 2008 -&gt;<\/p>\n<p>Right Click on the &#8220;SQL Server Management Studio&#8221; and choose to &#8220;Run as administrator&#8221;, as shown in the picture below;<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/20.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"340\" height=\"474\" align=\"baseline\" \/><\/p>\n<p>4.2.1.2\u00a0\u00a0 Click &#8220;Connect&#8221; to start managing the local SQL Server, as shown in the picture below<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/21.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"389\" height=\"291\" align=\"baseline\" \/><br \/>\n\u00a0<\/p>\n<p>4.2.1.3\u00a0\u00a0 Expand the &#8220;Databases&#8221; and Right Click\u00a0 &#8220;SMS_XYZ&#8221; and choose &#8220;Properties&#8221; as shown in the picture below;<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/22.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"426\" height=\"699\" align=\"baseline\" \/><\/p>\n<p>4.2.1.4\u00a0\u00a0 Click &#8220;Files&#8221; on the &#8220;Select page&#8221; to the left and change the &#8220;initial Size&#8221; of the &#8220;SMS_XYZ&#8221; file to\u00a0\u00a0 &#8220;40000 MB&#8221; and the &#8220;SMS_XYZ_log&#8221; file to &#8220;8000 MB&#8221; on the right pane and Click &#8220;OK&#8221;<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/23b.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"493\" height=\"459\" align=\"baseline\" \/><br \/>\nDo Not Close the &#8220;Microsoft SQL Management Studio console&#8221;, it will be used to optimize the TempDB in the following steps.<\/p>\n<p>1.2.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TempDB Optimization<br \/>\nFor best performance, increase or request the TempDB size as such:<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0\u00a0 Central Site<\/p>\n<p>\u00a0<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"259\">\n<tbody>\n<tr>\n<td width=\"127\" valign=\"top\">Setting<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">Value<strong> <\/strong>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Name\u00a0<\/td>\n<td width=\"132\" valign=\"top\">TempDB\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Data File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">20Gb (= 20% of the SCCM DB)\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Log File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">10Gb (= 50% of the TempDB)\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Autogrowth<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">By 10%, unrestricted growth\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Regional Primary Sites<\/p>\n<p>\u00a0<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" width=\"259\">\n<tbody>\n<tr>\n<td width=\"127\" valign=\"top\">Setting<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">Value<strong> <\/strong>\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Name\u00a0<\/td>\n<td width=\"132\" valign=\"top\">TempDB\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Data File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">8 Gb (= 20% of the SCCM DB)\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Log File:\u00a0<\/td>\n<td width=\"132\" valign=\"top\">4 Gb (= 50% of the TempDB)\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"127\" valign=\"top\">Autogrowth<strong> <\/strong>\u00a0<\/td>\n<td width=\"132\" valign=\"top\">By 10%, unrestricted growth\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>4.2.2.1\u00a0\u00a0 Expand the &#8220;Databases&#8221; and &#8220;System Databases&#8221; tree to see the &#8220;TempDB&#8221; in the console,\u00a0 Right Click\u00a0 &#8220;TempDB&#8221; and choose &#8220;Properties&#8221; as shown in the picture below;<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/24.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"227\" height=\"320\" align=\"baseline\" \/><br \/>\n\u00a0<\/p>\n<p>4.2.2.2\u00a0\u00a0 Click &#8220;Files&#8221; on the &#8220;Select page&#8221; to the left and change the &#8220;initial Size&#8221; of the &#8220;tempdev&#8221; file to &#8220;8000 MB&#8221; and the &#8220;templog&#8221; file to &#8220;4000 MB&#8221; on the right pane and Click &#8220;OK&#8221;<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/25.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"497\" height=\"447\" align=\"baseline\" \/><br \/>\nClose the &#8220;Microsoft SQL Management Studio console&#8221;<\/p>\n<p>1.2.3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Change the RAM settings for the SQL server<br \/>\nI choose to fix the RAM usage for the SCCM Sql server running on the same server as the SCCM Primary site servers,<\/p>\n<p>my servers had 8 GB Ram Memory and I have allocated 5 GB for the SQL server using the OSQL commands below:<\/p>\n<p><img loading=\"lazy\" src=\"http:\/\/harun.se\/custom\/26a.jpg\" border=\"0\" alt=\"\" hspace=\"0\" width=\"494\" height=\"258\" align=\"baseline\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SQL Server 2008\u00a0 Installation &amp; Provisioning \u00a01.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SQL Server 2008 Installation \u00a01.1.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Pre-Installation tasks Reboot your machine prior to starting the SQL Server installation process to make sure that you do not have any pending reboot requests which will block the SQL Server installation process. Create following Service Accounts in the Domain: SQLAgent, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/harun.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/harun.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harun.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harun.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harun.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":3,"href":"https:\/\/harun.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/harun.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/harun.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harun.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harun.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}