Sei sulla pagina 1di 23

SQL Server 2008 R2 Installation on Windows 2008 or Windows 7

Assumptions ............................................................................................................................................ 2
Links ......................................................................................................................................................... 2
Setup........................................................................................................................................................ 2
Installation ............................................................................................................................................... 3
Selecting Features ................................................................................................................................... 4
The First Named Instance Creation ......................................................................................................... 6
Accounts .................................................................................................................................................. 7
Data Directories....................................................................................................................................... 7
Connecting the Database Instance.......................................................................................................... 9
Creating Another Instance .................................................................................................................... 11
The Second Named Instance Creation .................................................................................................. 13
Accounts ................................................................................................................................................ 14
Data Directories..................................................................................................................................... 15
Connecting The Database Instance ....................................................................................................... 16
Creating Database ................................................................................................................................. 17
SQL Server Tools .................................................................................................................................... 18
Instance Parameters.............................................................................................................................. 18
Adding Features To An Existing Instance .............................................................................................. 19

Assumptions

Windows Server 64 bit or Windows 7 bit installed and configured already


Or you have a Virtual Machine configured with Windows Server 64 bit or Windows 7 or
performing the installation on a Laptop with Windows 7 or later version
The software SQL Server 2008 R2 Enterprise is downloaded. If not see the link below to get a
Evaluation copy

Links

Download a copy of evaluation of Windows Server

http://www.microsoft.com/en-us/download/details.aspx?id=11093
Download a copy of SQL Server 2008 R2 Server or any latest version
http://technet.microsoft.com/en-us/sqlserver/jj901638

Setup

.NET 3.5 is the prerequisite. Below you can see .NET 4 is already installed, but the installer
checks for the presence of 3.5 and it gets installed

Below are the minimum drives configured already. If the complete installation is done on
single drive, say C, it is called an installation but not a good installation. It is still a good thing
to create separate folders for data files and logs if you have just one drive.

Software is attached to a share folder of Virtual Box

Installation

Installation is started by double-clicking on the "Setup" (the one with a green color)
The installer installs .NET 3.5 SP1 for you

Selecting Features

If you select all the features you are wasting space and memory. The next screen shows the
major features relevant to Database Engine. If any additional features are needed then it is
possible to install them later as per the need

Below screen shows the features selected


Note the highlighted that is shared feature directory. If you think of think of changing the
path it throws the error. If might be possible to change the path but it is the recommended
way of installing
The error below shows what happens if path is changed
It is good to go with default here as suggested by Microsoft

Error if Path is changed

The First Named Instance Creation

The screen below is the default name of Instance

If you wish to hold one directory for all the instances then create a directory

I do not want to go with default and created a name that I like. All my SQL Server instances
will be saved in a single directory called "instances". Each sub folder belongs to a certain
instance. See the SQL Server Directory path that is highlighted

Accounts

In this case no accounts were created. For example Active Directory accounts. So, the default
account is used

Data Directories

Just edit the path where you want to store the relevant data
The installer creates the directories for you. Just give a name
The below screen shows how I did

Individual directories named. The installer creates the directories for you

If you are satisfied then press on Install to start the installation

Connecting the Database Instance

Using Management Studio we connect the Database Instance


It is also called SSMS Tool

The SYS1 is the name of the computer


The IND1234 is the name of the instance

Navigate to see what are the basic System Databases created by SQL Server

Creating Another Instance

Open the below highlighted one and set the path to the software that is SQL Server Software

It is the same step that was performed for the initial instance creation
It shows below what instances are already available

The below screen shows the already installed features and available are not highlighted

The Second Named Instance Creation

Accounts
In this case no accounts were created. For example Active Directory accounts. So, the default
account is used

Data Directories

Just edit the path where you want to store the relevant data
The installer creates the directories for you. Just give a name
The below screen shows how I did
Individual directories named. The installer creates the directories for you

If you are satisfied then press on Install to start the installation

Connecting The Database Instance


Using Management Studio we connect the Database Instance
It is also called SSMS Tool

It points to the old instance that was already connected

Creating Database

Right click on Database and go with "new database" to create a fresh new database
SQL Server Community provides prebuilt Database and the files are available with MDF . So,
in case you want to attach such Database the "Attach" option should be selected. The below
screen shows it

SQL Server Tools

The highlighted ones in yellow color are the tools that we often work with

Instance Parameters

Right click on the instance and click on 'Properties'


Here you can set that you like to test and play around with it. However the SQL Server sets
the recommended settings

Adding Features To An Existing Instance


Click on "Setup" to start the installer or click and open the installation from Configuration
Tools from 'Start' . The path to the software that is SQL Server should be provided
Business Intelligence Studio and Integration Services features added

Select the instance to which you want to add a feature

The additional features can be Analysis Service or SQL Server Business Intelligence Studio or
Integration Service etc.
With selecting the below one that is highlighted you can add a feature
In my case I selected the "EUR2070" Instance

Let's say, for example, Business Intelligence Studio and Integration Services are needed for
this instance. Select them as shown below

In this case no accounts were created. For example Active Directory accounts. So, the default
account is used

If you are satisfied then press on Install to start the installation

Connect the "EUR2070" Database Instance

The below screen shows the added feature

Potrebbero piacerti anche