Download and own this SCCM Installation Guide in a single PDF file.

The PDF file is a 162 pages document that contains all informations to install and configure SCCM Current Branch. Use our products page or use the button below to download it .

Download


Icon Info

This blog post has been updated. Please refer to the new SCCM Current Branch Installation Guide.

In the first part of this SCCM 2012 and SCCM 1511 blog series, we planned our hierarchy, prepared our Server and Active Directory.

In part 2, we will install and configure SQL before installing SCCM 2012 R2 or SCCM 1511.

Click the following link to see all supported SQL versions. For our post, we will install SQL 2012 SP2 locally on the same server where the Primary Site will be installed.

SCCM 2012 SQL Install Guide

  • Execute Setup.exe from the SQL installation media, select New Installation

sccm 2012 sql install guide

  • Review and Click Next

sccm 2012 sql install guide

  • Select Enter Product Key and skip the proposed updates. We will install CU4, later

sccm 2012 sql install guide

  • Select SQL Server Feature Installation

sccm 2012 sql install guide

  • Select the Database Engine, Reporting Services and Management Tools features and specify the SQL installation directory. This is the directory for the program files and shared features

sccm 2012 sql install guide

  • Select Default instance and ensure that your instance is created on the SQL Volume

sccm 2012 sql install guide

  • Review and click Next

sccm 2012 sql install guide

  • Set all services to run as the SQL domain account that you created previously and set the services start up type to Automatic

sccm 2012 sql install guide

  • On the Collation tab, set the Database Engine to use SQL_Latin1_General_CP1_CI_AS

sccm 2012 sql install guide

  • In the Server Configuration tab, set the authentication mode to Windows Authentication and in the SQL Server Administrators add your SCCM Admins group

sccm 2012 sql install guide

  • In the Data Directories tab set your drive letters correctly for your SQL databases, Logs, TempDB, and backup

sccm 2012 sql install guide

  • In Reporting Service Configuration, Select Install only

sccm 2012 sql install guide

  • In Error Reporting, uncheck the box, Click Next

sccm 2012 sql install guide

  • Click Next

sccm 2012 sql install guide

  • Click Install

sccm 2012 sql install guide

  • Complete the installation by clicking Close

sccm 2012 sql install guide

SPN Creation

When you configure SQL Server to use the local system account, a Service Principal Name (SPN) for the account is automatically created in Active Directory Domain Services. When the local system account is not in use, you must manually register the SPN for the SQL Server service account.

Since we are using a domain account, we must run the Setspn tool on a computer that resides in the domain of the SQL Server. It must use Domain Administrator credentials to run.

Run both commands to create the SPN, Change the server name and account name in each commands.

  • setspn -A MSSQLSvc/yourservername:1433 yourdomain\SQLSA
  • setspn -A MSSQLSvc/yourserver.fullfqdn.com:1433 yourdomain\SQLSA

To verify the domain user SPN is correctly registered, use the Setspn -L command

  • setspn –L yourdomain\SQLSA

Apply SQL 2012 STD SP2 CU4

At the time of this writing, the latest SQL Cumulative Update is CU4. We will install it in order to have a updated SQL Installation.

sccm 2012 sql install guide

  • Leave default values, click Next

sccm 2012 sql install guide

  • Wait for Check File in Use and click Next

sccm 2012 sql install guide

  • Click Close when the process is completed

sccm 2012 sql install guide

SQL Configuration

SCCM setup verifies that SQL Server reserves a minimum of 8 GB of memory for the primary site. To avoid, the warning, we’ll set the SQL Server memory limits to 8GB-12GB (80% of available RAM).

  • Open SQL Server Management Studio
  • Right click the top SQL Server instance node
  • Select Properties
  • In the Memory tab define a limit for the minimum and maximum server memory. Configure and limit the memory to 80% of  your server available RAM. In my case I have 16GB available.
    • Minimum 8192
    • Maximum 12288

sccm 2012 sql install guide

Database Sizing

We always recommend to create the SCCM database before the setup. This is not mandatory, SCCM will create the database for you during setup but will not create it the optimal way. We strongly recommend to watch the The Top Ten Lessons Learned in Managing SQL session from MMS2013 which cover it all.

We follow the guide made by MVP, Kent Agerlund to estimate my DB sizing need. Visit his blog post and download the provided Excel file. Input your values in the blue cells and keep it for the next part. We’ll create the DB using those values using a script in the next section.

For this blog post, We’ve created a Database for 2000 clients, 2 processors, 2 cores and 16GB RAM.

sccm 2012 sql install guide

Create Database

To create the database, you can use Kent’s script and input your values (as returned previously in the Excel file) OR  use the following one which is really simple:

The Name value will become your Site Code during the SCCM installation. Be sure to select a unique Site Code.

  • **Replace all XXX value with your 3 character Site Code**
  • **Change the values of  the Filename, Size, MaxSize and FileGrowth. Change the location of the file to your SQL and Logs drives**

[pastacode lang=”sql” manual=”USE%20master%0ACREATE%20DATABASE%20CM_XXX%0AON%0A(%20NAME%20%3D%20CM_XXX_1%2CFILENAME%20%3D%20’E%3A%5CSCCMDB%5CCM_XXX_1.mdf’%2CSIZE%20%3D%207560%2C%20MAXSIZE%20%3D%20Unlimited%2C%20FILEGROWTH%20%3D%202495)%0ALOG%20ON%0A(%20NAME%20%3D%20XXX_log%2C%20FILENAME%20%3D%20’G%3A%5CSCCMLogs%5CCM_XXX.ldf’%2C%20SIZE%20%3D%204990%2C%20MAXSIZE%20%3D%204990%2C%20FILEGROWTH%20%3D%20512)%0AALTER%20DATABASE%20CM_XXX%0AADD%20FILE%20(%20NAME%20%3D%20CM_XXX_2%2C%20FILENAME%20%3D%20’E%3A%5CSCCMDB%5CCM_XXX_2.mdf’%2C%20SIZE%20%3D%207560%2C%20MAXSIZE%20%3D%20Unlimited%2C%20FILEGROWTH%20%3D%202495)” message=”” highlight=”” provider=”manual”/]

Review the Site Database properties

  • Open SQL Management Studio
  • Right click your DB, Select Properties
  • In the General tab, verify that the SQL collation name is SQL_Latin1_General_CP1_CI_AS

sccm 2012 sql install guide

  • In the File tab, verify that your database files has been created with the script value
  • Verify that the file is located on your SQL Volume
  • Change the database owner to SA. By default the owner will be the account which created the database.

sccm 2012 sql install guide

If you find out that you made an error, you can safely delete the Database using SQL Management Studio and rerun the script.

  • Open SQL Management Studio
  • Right click your DB, Select Delete

sccm 2012 sql install guide

TempDB sizing

Run the following scripts to size the TempDB. (using the value returned by the Excel file)

**Change the values of Filename, Size, MaxSize and FileGrowth. Change the location of the file to your TempDB drives**

[pastacode lang=”markup” manual=”use%20master%0Ago%0Aalter%20database%20tempdb%20modify%20file%20(name%3D’tempdev’%2C%20filename%3D’F%3A%5CSCCMTempDB%5CtempDB.MDF’%2C%20SIZE%3D%204536%2C%20MAXSIZE%20%3D%20Unlimited%2C%20FILEGROWTH%20%3D%20512)%0Ago%0Aalter%20database%20tempdb%20modify%20file%20(name%3D’templog’%2C%20filename%3D’G%3A%5CSCCMLogs%5Ctemplog.LDF’%2C%20SIZE%3D%202268%2C%20MAXSIZE%20%3D%20Unlimited%2C%20FILEGROWTH%20%3D%20512)%0Ago” message=”” highlight=”” provider=”manual”/]

Review the TempDB properties

  • Open  SQL Management Studio
  • In  System Database, Right click the TempDB, select Properties
  • In the File Tab, verify that your database files has been created with the script value
  • Ensure that the TempDB and log are on the TempDB volume

sccm 2012 sql install guide

SQL Communications

To ensure proper SQL communication, verify that settings are set accordingly in SQL Network configuration

  • Open SQL Server Configuration Manager
  • Go to SQL Server Network Configuration / Protocols for MSSQLServer
  • On the Right Pane, right-click TCP/IP and select Properties
  • In the Protocol tab
    • Enable: YES
    • Listen All : NO

sccm 2012 sql install guide

  • In the IP Addresses tab
  • IP1 (which should have your Server IP)
    • Active : YES
    • Enabled : YES
  • All other IP and IP ALL
    • Active : YES
    • Enabled : NO
    • TCP Dynamic Ports : Blank value
    • TCP Port : 1433

sccm 2012 sql install guide

Once modification has been made, restart the SQL Server Service.

The server is now ready for SCCM installation.

Overview | SCCM 2012 R2 Step-by-Step Installation Guide

Next Part | How to install SCCM 2012 R2

sccm 2012 sql install guide

Comments (47)

Daniel

03.07.2016 AT 11:48 AM
Hello, I have two questions: 1. In the "Instance configuration section" you wrote "Select Default instance and ensure that your instance is created on the SQL Volume". What is the SQL Volumen? C:\ or E:\? 2. According to the previous part, section "Disk", drive D:\ is dedicated for SCCM. So is it correct, that in the "Database Engine Configuration", tab "Data Directories", the "Data Root Directory" also "d:\SQL" is? An addition note: drive letter H:\ is not noted in the "Disk" section in the previous part. Daniel What is

Asmar Fontenot

02.19.2016 AT 02:05 PM
This is a wonderful guide for the setup and config of SCCM for an intermediate Systems Administrator that has no previous experience with SCCM. I don't say 'beginner' only because if you are looking just to blindly follow steps you see on the screen, you can't. You need to pay attention and READ what he says and fill in the necessary info where needed and make decisions/changes based on your environment or server setup. My only comment so far is that I got to this page through the SCCM 1511 setup guide/blog. But your next part and overview links are for the SCCM 2012 R2 guide. I know a small thing but you may want to 'fork' this page for each guide or update the link to point to your most recent install guide. https://systemcenterdudes.com/step-by-step-sccm-1511-installation

Brian Moffet

01.19.2016 AT 10:30 AM
I'm working on a side-by-side migration from SCCM 2012 sp1 to 1511. My original db was a flat single partition configuration. What happens if I setup my new db per your suggestions splitting the files out? Should my data still migrate over or should I maintain the original configuration?

Benoit Lecours

01.22.2016 AT 09:07 AM
That's a good question. I'm not an SQL guru, I can't answer your question unfortunately. I'm pretty sure you can change the configuration of the SQL server once your migration is completed. In SQL Management studio, you can change the path of the files but I haven't test that. I'm pretty sure you can have your answer on any good SQL forum out there. http://thomaslarock.com/2015/02/changing-default-database-file-locations-in-sql-server/

Binary

12.12.2015 AT 06:09 AM
I love this deployment guide. I think this is the first guide you can use to deploy ConfigMgr in the production environment.

Benoit Lecours

12.16.2015 AT 07:54 AM
Thanks, your comment is appreciated !