back

Download Microsoft SQL Server

Can use "Microsoft SQL Server 2012 Express". Download page is the following: https://www.microsoft.com/en-us/download/details.aspx?id=29062

Click download:

img

Want to select "SQLManagementStudio_x64_ENU.exe". This corresponds to:

img

(Can see the different download options by looking under "Details" in the above screenshot:)

img

Check the box for the desired version, as mentioned:

img

Select "New SQL Server stand-alone installation or add features to an existing installation":

img

License terms:

img

Check "LocalDB":

img

Review and click "Next":

img

Program will install. If it installs correctly:

img

Open Windows command prompt by clicking the start menu and searching for “cmd” and then clicking on “cmd.exe”:

img

To test that the SQL LocalDB installed correctly, type the following command after the ">" and press "Enter":

SqlLocalDb info

Should see the version number display:

img

If LocalDB installation was successful and you see the version number, can then create an instance of the LocalDB. The following example uses the name "sql", but you can use a different name:

SqlLocalDb create sql

Should see the following if the command was succesful:

img

Open SQL Server Management Studio and enter "(localdb)\LocalDB_instance_name", such as "(localdb)\sql" as in our example, for the Server Name. Then click "Connect" to connect to the server

img

To enter a command, click "New Query" on the toolbar.

img

Enter a sample command into the newly displace window, such as "select @@version":

img

Press "F5" or click the "Execute" button on the toolbar to execute the command return a result. This example returns the software version of SQL Server that is installed:

img