In the sonar.properties file you configure a lot of stuff regarding hosting and persisting data from SonarQube. We just going to configure which database SonarQube will connect and in which port will be hosted.
To do that just add the two following lines:

In order to SonarQube successfully connect in the SQL Server database you are going to need to enable the TCP/IP protocol in the database instance you are intending to use. Also make sure that the TCP port being used is the SQL Server default port 1433.

One more detail, if you are using SQL Authentication instead of Windows Authentication you are going to need to add the two following parameters:

4- Start SonarQube

Go to the <sonar_directory>/bin/windows-x86-64 folder (or whatever Windows you are using) and run the StartSonar.bat file.
If everything goes well you are going to see the SonarQube dashboard.

5- Install the C# and JavaScript plugins

In SonarQube login with the default admin/admin user and then follow the steps:

5.1 Click in the ‘Administration’ menu;

5.2 Click in the ‘System’ menu and then in the ‘Update Center’ submenu;

5.3 Click in the ‘Available’ tab and then search for C# and click Install;

5.4 Restart SonarQube;

5.5 Go back to step 5.3 to install the JavaScript plugin.

6- Create a new SonarQube project

Just follow the steps:

6.1 Click in the ‘Administration’ menu (yes, again);

6.2 Click in the ‘Projects’ menu and then in the ‘Management’ submenu;