15
Installing SQL Server 2012 Express Edition with Tools Last updated 3.15.2016 If you already have version of SQL Server Express Edition installed that is earlier than 2008 R2 SP2, you need to either: upgrade to at least 2008 R2 SP2 PRIOR to installing SQL Server 2012 Express Edition (http://www.microsoft.com/en-us/download/details.aspx?id=30438 then choose “upgrade from SQL Server 2000, SQL Server 2005, or SQL Server 2008) OR uninstall the older version including the management studio (add/remove programs, all components) then re-boot and install the newer version. Also, if you already have a version of Visual Studio installed that is earlier than 2010 SP1, you need to either: upgrade to at least VS 2010 SP1 PRIOR to installing SQL Server 2012 Express Edition (http://www.microsoft.com/en-us/download/details.aspx?id=23691 ) OR uninstall the older version and upgrade to VS 2012 PRIOR to installing SQL Server 2012 Express Edition To run SQL Server 2012 R2 Express Edition, ensure your computer meets the following minimum requirements (http://msdn.microsoft.com/en-us/library/ms143506.aspx ): Minimum of 512 MB of RAM (1G or more is recommended.) 1.9G of available hard disk space 1GHz processor speed (32-bit); 1.4 GHz processor speed (64-bit) (2.0 GHz or faster recommended) Windows Vista SP2, Windows 7 SP1, Windows Server 2008 R2 SP1, or Server 2012 or above .NET 3.5 SP1 An internet connection To download the SQL Server 2012 Express Edition software WITH management tools: 1. I suggest you download from the Microsoft.com website. If you choose to download from dreamspark proceed with step 2; if you download from Microsoft.com proceed with step 3. 2. If downloading from www.dreamspark.com : a. click on “students”, b. sign in OR create a new account if you don’t already have one—it’s free, c. go to software catalog, d. under “Servers & Applications” choose SQL Server 2012, e. choose “Express with Tools ??-bit” where ?? is either 32 or 64 bit, f. then click the green Download button. Page 1 of 15

installation from SQL Server Express Edition

Embed Size (px)

Citation preview

Page 1: installation from SQL Server Express Edition

Installing SQL Server 2012 Express Edition with Tools Last updated 3.15.2016

If you already have version of SQL Server Express Edition installed that is earlier than 2008 R2 SP2, you need to either:

upgrade to at least 2008 R2 SP2 PRIOR to installing SQL Server 2012 Express Edition (http://www.microsoft.com/en-us/download/details.aspx?id=30438 then choose “upgrade from SQL Server 2000, SQL Server 2005, or SQL Server 2008) OR

uninstall the older version including the management studio (add/remove programs, all components) then re-boot and install the newer version.

Also, if you already have a version of Visual Studio installed that is earlier than 2010 SP1, you need to either:

upgrade to at least VS 2010 SP1 PRIOR to installing SQL Server 2012 Express Edition (http://www.microsoft.com/en-us/download/details.aspx?id=23691) OR

uninstall the older version and upgrade to VS 2012 PRIOR to installing SQL Server 2012 Express Edition

To run SQL Server 2012 R2 Express Edition, ensure your computer meets the following minimum requirements (http://msdn.microsoft.com/en-us/library/ms143506.aspx):

Minimum of 512 MB of RAM (1G or more is recommended.) 1.9G of available hard disk space 1GHz processor speed (32-bit); 1.4 GHz processor speed (64-bit) (2.0 GHz or faster recommended) Windows Vista SP2, Windows 7 SP1, Windows Server 2008 R2 SP1, or Server 2012 or above .NET 3.5 SP1 An internet connection

To download the SQL Server 2012 Express Edition software WITH management tools:1. I suggest you download from the Microsoft.com website. If you choose to download from dreamspark proceed

with step 2; if you download from Microsoft.com proceed with step 3.2. If downloading from www.dreamspark.com:

a. click on “students”, b. sign in OR create a new account if you don’t already have one—it’s free, c. go to software catalog, d. under “Servers & Applications” choose SQL Server 2012, e. choose “Express with Tools ??-bit” where ?? is either 32 or 64 bit, f. then click the green Download button. g. You may see the screen below. If so, click the orange button in step 1 to run the download manager.

h. If you get the message below, click Run, then click Run again if requested.

Page 1 of 11

Page 2: installation from SQL Server Express Edition

i. Follow the instructions in the wizard to install the download manager.j. Once the previous step is complete, click the orange button in step 3 in the screenshot above to begin

downloading sql server. If you get the message below, click Open (and click Yes to Allow the program to make changes to the computer if prompted).

k. Click the green “Start Download” button (took approximately 6 minutes on my computer):

l. Click on the dark green Launch button (took approximately 2 minutes to extract files)

Page 2 of 11

Page 3: installation from SQL Server Express Edition

3. If downloading from https://www.microsoft.com/en-us/download/details.aspx?id=43351:a. Click Download buttonb. Choose the appropriate SQLEXPRWT_x??_ENU.exe download, where ?? is either 64 or 86, depending on

your operating system, then click the Next buttonc. Save the file on your computer

d. Go to the location where you saved the .exe file and double-click it

4. Whether you downloaded from dreamspark or Microsoft.com, select either a new installation or an upgrade as appropriate.

***Note that the remaining screenshots are based on an upgrade installation from SQL Server Express Edition 2008 R2 SP2, but the screens should be similar to a new installation***

5. Wait for setup rules to be checked

6. Assuming no product updates are needed, click Next.

Page 3 of 11

Page 4: installation from SQL Server Express Edition

7. Wait for setup files to be installed (approximately 3 minutes). You may get a message that a restart will be required after installation; if so, click OK.

8. Accept the license terms and click Next.

9. (a) If you are upgrading from an older version of SQL Server Express Edition, you will get screen (a) below. If you have multiple copies of SQL Server installed, choose the instance you want to upgrade. Click Next.

- OR -(b) If this is a new installation, you will get screen (b) below. Click the Select All button, then click Next.

10. Wait while installation or upgrade rules are checked. If upgrade errors are found, click Cancel, correct the errors, then restart the installation.

Page 4 of 11

(a) (b)

Page 5: installation from SQL Server Express Edition

11. If this is a new installation you will see a screen similar to below. Accept the default values and click Next.

12. If this is a new installation, then after confirming you have the necessary disk space, you will be asked if you want to customize the accounts that run SQL Server. Accept the default values and click Next.

Page 5 of 11

Page 6: installation from SQL Server Express Edition

13. If this is a new installation, you will get the screen below. Ensure the Server Provisioning tab of the Database Engine Configuration screen appears as below. Provide a strong password for the ‘sa’ account. The password is case-sensitive. I suggest you write down your ‘sa’ account password so that you will not forget it. NOTE: the ‘sa’ ID is a SQL Server logon ID that has all administrative privileges in the database system. Click Next.

14. Click Next on Error Reporting Screen

15. The installation (or update if you’re upgrading) should begin. Took approximately 20 minutes.

Page 6 of 11

Page 7: installation from SQL Server Express Edition

16. Installation complete

17. If you downloaded SQL Server from dreamspark, then download and install SQL Server 2012 Service Pack 1 (https://www.dreamspark.com/Product/Product.aspx?productid=50). Note the SP1 download is a zip file, so needs to be unzipped first. Then run the 64-bit executable file to install the service pack. Take all the defaults. Installation took about 8 minutes.

Page 7 of 11

Page 8: installation from SQL Server Express Edition

Accessing SQL Server Database from Clients

In order to be able to access your instance of SQL Server via SQL Server Management Studio, take the following steps which you will perform one time only:

Start | All Programs | Microsoft SQL Server 2012 | Configuration Tools | SQL Server Configuration Manager

Expand the SQL Native Client 11.0 Configuration (32bit) node; Select Client Protocols; ensure the protocols on the right-hand side appear as shown (to change from Disabled to Enabled, right-click the IP protocol and choose Enabled).

Repeat this for the SQL Server Network Configuration node’s Protocols for SQLEXPRESS.

Also repeat this for the SQL Native Client 10.0 Configuration node’s Client Protocols.Click X to exit the configuration manager.

Upon exiting the configuration manager you may get the warning below. Click OK. Then either stop and restart the SQL Server Express Edition service (not recommended), OR simply re-boot your computer (recommended).

Page 8 of 11

Page 9: installation from SQL Server Express Edition

Logging in to SQL Server Management Studio

1. Start | All Programs | Microsoft SQL Server 2012 | SQL Server Management Studio

2. To log in to SQL Server, first make sure Server type is Database Engine. Then follow the remaining steps on this page if you installed SQL Server Express edition on your own computer; otherwise, follow the steps on the next page if you are using SQL Server Express Edition in the lab.

If you are on your own computer: Server name should already be filled in with a name resembling

YOUR_COMPUTER_NAME\SQLEXPRESS. If this name is not filled in, type it in the Server name field using the format just stated.

To use Windows Authentications, choose Windows Authentication then click Connect

To use SQL Server Authentication on your own computer, choose SQL Server Authentication, enter your SQL Server-defined login ID (eg, ‘sa’) and password (password is case-sensitive), then click Connect

If you are in the lab: Ensure the Server name is HSB-MIS-SQL.

Use Windows Authentication then click Connect

Page 9 of 11

Page 10: installation from SQL Server Express Edition

Creating a New Database ON YOUR OWN COMPUTER

After installing SQL Server and SQL Server Management Studio, and after logging in the first time, I suggest you create a separate database to use for class work. Make sure you are logged into either your windows-authenticated ID, OR the ‘sa’ ID you setup during installation, OR some other ID that has been granted CREATE DATABASE access.

To create a database, right-click the Databases folder and choose New Database…

Give the new database a name at top (eg, MIS4340 or MIS4V98), then click OK--don't click Add

Page 10 of 11

Page 11: installation from SQL Server Express Edition

Creating a New Table in SQL Server Express Edition

To create a new table, first choose the Database that you want the table to be contained in, then right-click the Tables folder in that Database and choose New Table…

You may get the message below; if so, just click OK

Enter your column names, change the default Data Types, lengths, and table Name as appropriate; then click Save.

Page 11 of 11