SQL

How to Install Microsoft SQL on a Domain Controller

SQL by default cannot be install on a domain controller using the administrator account. Therefore, the installation of SQL will failed if installed on a DC. This guide shows you how to install SQL on a domain controller.

Before we proceed, you must create a domain user with administrator privileges, this will be the account to use on our SQL installation. After the user has been created, proceed with the following steps:

Microsoft SQL Server Installation

  1. Download Microsoft SQL Server Express 2012 from Microsoft website.
  2. Once SQL has been downloaded, go to your download folder and double click the file “SQLEXPRWT x64 ENU.exe” to start the installation process.
  3. A security warning will popup for the SQL setup installation click “Run“.
  4. On the next windows select “New SQL Server Stand-alone installation” link.
  5. Accept the license terms then click “Next“.
  6. Make sure Include SQL Server product updates is selected and then click “Next“.
  7. The installation will proceed to download updates and additional files.
  8. Make sure everything is selected as on the image below and then click “Next
  9. On the next Windows, name the instance name and then click “Next“.
  10. This is the critical part in order to be able to install SQL, on SQL Server Database Engine click on the arrow and select “Browse“.
  11. Next enter the user name, Note: the user has to be a domain administrator but cannot be the user “Administrator”. Click on “Check Names” then click “Ok
  12. Then enter the password for the user, then click “Next“.
  13. Change the Authentication Mode to Mixed Mode and set a password for the SA account, then click “Next“.
  14. Click “Next” again.
  15. The installation process will start.
  16. Once the installation completes, click “close“.
  17. Now click on the “x” to close windows.

Configure Microsoft SQL Server

Once SQL is installed, now we need to configure it to use TCP/IP and to listen on port 1443 as default port.

  1. To open SQl server configuration manager, click on “Start>All programs” look for a folder name Microsoft SQL Server under Configuration Tools, select “SQL Server Configuration Manager” or search for “SQL Server Configuration Manager“.
  2. Expand SQL Server Network Configuration and click on Protocols for “SQLEXPRESS” (Name of Instance), right click on TCP/IP and select “Enable“.
  3. You will get a warning letting you know that the SQL server needs to be restarted, for the changes to take effect. Click “OK“.
  4. Once more right click on TCP/IP and select “Properties“.
  5. Next go down and on each entry for “TCP Dynamic Ports” remove all the “0” and leave it blank. There should not be any 0 in none of the entries for “TCP Dynamic Ports“. Scroll down and remove each one.
  6. When you get to the bottom of the list on “IP All” change TCP Port to “1433“, this will be the port we will be using for this example. Then click “Apply“.
  7. You will get a warning letting you know that SQL services need to be restarted, to apply the changes. Then click “OK”.
  8. Click “OK” again to apply the changes.
  9. Now select SQL Server Services on the left pane. Then right click on SQL Server (SQLEXPRESS) and in the menu select “Stop“.
  10. This will stop the service.
  11. Right Click on it again, but this time, select “Start”.
  12. After the SQL services has started, click on the “X” button to close the window.

This concludes the installation and configuration of Microsoft SQL Server Express 2012 on a Domain Controller. If you have any questions or comments please let me know.

3 thoughts on “How to Install Microsoft SQL on a Domain Controller

  1. Yes, THANK YOU very much indeed. Had this job thrown at me yesterday and haven’t installed SQL for many years but had something niggling in the back of my head that it wasn’t a straightforward job.

    Much appreciated Oscar! I would have been in big doo doos if I had not read your post.

    Regards,

    Joe

  2. Thank you so much for this tutorial very complete. I used it to install Sql Server 2014 on Windows Server 2012 .

Leave a Reply

Your email address will not be published. Required fields are marked *