|
Introduction to Microsoft SQL Server |
|
Introduction to Microsoft SQL Server Setup |
|
|
Microsoft SQL Server is an application used to create
computer databases for the Microsoft Windows family of server operating
systems. It provides an environment used to generate databases that can be
accessed from workstations, the web, or other media such as a personal
digital assistant (PDA).
|
Before installing Microsoft SQL Server 2008, make sure
you have installed all service packs on your operating system.
One of the main concerns of a database is security, and
this is central to Microsoft SQL Server. To install and use Microsoft SQL
Server, you must use a computer account that must be authenticated to the
computer. To start, you must create an appropriate user account. This
depends of the operating system of the computer you will use.
Creating a User Account in Microsoft Windows XP
- Start Control Panel
- Click User Accounts:
- Click Create New User:
- Type the name for the new account:
- Click Next.
Make sure the Computer Administrator radio button is
selected
- Click Create Account
- To assign a password to an account, in the User Account, click the
account you created
- Click Create A Password
- In the Type A New Password text box, type Password1 and press
Tab
- Type Password1 to confirm and type anything in the last text
box:
- Click Create Password
Creating a User Account in Microsoft Windows 7
- Start Control Panel
- Click User Accounts
- Click User Accounts again
- Click Manage Accounts
- Click Advanced
- Click Advanced again
- In the left frame, right-click Users and click New User...:
- Enter the user name, the full name, an optional description, and a
password twice:
- Click Create
- Click OK
Creating an Account in Microsoft Windows Server 2003 or
2008
- Log in to Microsoft Windows Server 2003 or 3008 with an account that
can create accounts
- To create an account in Microsoft Windows Server 2003 or 2008, on
the taskbar, click Start -> Administrative Tools -> Active Directory
Users and Computers.
If you receive a message box, click Continue
- In the left frame, expand the node of the domain if necessary.
Right-click Users, position the mouse on New, and click User
- Enter the first name, the optional initial (you can skip it), the
last name, and the user name (the domain name will be different from
yours)
- Click Next
- Type the password and press Tab
- Type the password again and accept the options in the check boxes
- Click Next (in the summary, the domain name will be different from
yours)
- Read the summary in the last page of the wizard and click Finish
Practical
Learning: Creating Accounts
|
|
- Depending of your operating system, create the following accounts
that we will use in our lessons:
Microsoft Windows Server |
User (Logon) Name |
Windows XP-7 |
Password |
First Name |
Initials |
Last Name |
|
Full Name |
Patricia |
H |
Katts |
pkatts |
Patricia H Katts |
Password1 |
Orlando |
|
Perez |
operez |
Orlando Perez |
Password1 |
Gertrude |
D |
Monay |
gdmonay |
Gertrude Danielle Monay |
Password1 |
Raymond |
|
Kouma |
rkouma |
Ramond A Kouma |
Password1 |
- After creating the accounts, Click Close
- Click Start -> Switch User
- One after the other, log in as each of the above user accounts and
provide the password as Password1
- When asked to provide the new password, type one you like,
otherwise, use P@ssword1
- Re-log in to the computer or server using the Administrator account
A security principal is a person or an object that needs
access to a database. The security principal can be considered as one entity
or as a group of entities:
This means that a security principal can be considered
as a lone entity or as member of a group. For example, a person who accesses
a database can be considered an entity. A group of people who perform the
same job and have been give the same accecss(s) to a database (or to an
object of a database) is considered a collection.
Creating a Group in Microsoft Windows 7:
(We didn't have access to Microsoft Windows XP when writing this lesson)
- Start Control Panel
- Click User Accounts
- Click User Accounts again
- Click Manage Accounts
- Click Advanced
- Click Advanced again
- In the left frame, right-click Groups and click New Group...
- Enter the desired name of the group and an optional description
- You can click Create
- When creating a group or after creating it, to make it useful, you
should (must) add one or more users to it. If you have created a group
and had closed the dialog box already, open it using the previous steps.
To add a user, click Add...
- This would open a dialog box. First check the location. If it is not
displaying the right computer, click Locations... In the Locations
dialog box, if you will access the database locally, select the name of
the computer and click OK.
In the bottom text box, type the
(complete) username of the person you want to add
- Click Check Names
- Once the name has been resolved, click OK.
You can either add one
name at a time or add the other names one after another
Creating a Group in Microsoft Windows Server 2003 -
2008:
- Open the Active Directory Users and Computers
- Right-click Users -> New -> Group
- Type the desired name for the group and check the options of the
radio buttons
- After providing and checking the options, click OK
- In order to use a group, you should add at least one user to it. To
do this, locate the group and double-click it or right-click the group
and click Properties
- When the dialog box opens, click the Members tab
- Click Add
- In the bottom text box, enter the (complete) user name of the
account
- Click Check Names
- When the name has been resolved, click OK
You can control the type of access that a security
principal can exercise on a machine or a database, based on a level of
accecss. There are three levels: Windows, server, and database:
Based on the functionality of a security principal, it
can be considered as belonging to a collection.
To help the operating system identify them, each
security principal uses a unique number called a security identifier (SID).
Practical
Learning: Creating a Group
|
|
- Depending of your operating system, create a group named
Clerks
- Set the Description to Applications Testers
- Add the operez and the rkouma accounts to it
- Click Create
Creating an
Administrator Account
|
|
To actually install Microsoft SQL Server 2008, you must
use a user account that has the ability to install an application. If you
are using Microsoft Windows XP, Vista, or 7, you should use the
Administrator account or create a new account that has administrative
rights. The account must also use/have a password.
|
During the installation of Microsoft SQL Server,
you must log in, using a username and a password. If you are working
in Microsoft Windows XP->7, after the installation, if you want, you
can remove the password on the account, but you will not be able to
connect to Microsoft SQL Server again. If you want to connect to the
server, you will have to use a password again.
|
Creating an Administrator in Microsoft Windows 7
- To start, display the [Local Users and Groups (Local)] window
- In the left frame, click Groups
- In the right frame, either double-click Administrators or
right-click it and click Properties
- Click Add...
- Check the contents of the Location. If you are working locally,
click Locations. If a dialog box comes up, click Cancel. Select the name
of the computer
In the bottom text box, type the (complete) user name
of the person
- Click Check Names
- When the name has been resolved, click OK
Creating an Administrator in Microsoft Windows Server
2003-2008
- To start, display the Active Directory Users and Computers window
- You have various options:
- To add an account to the built-in Administrators group:
- In the left frame, click BuiltIn
- In the right frame, either double-click Administrators or
right-click it and click Properties
- To add an account to another group, such as the Domain Admins:
- In the left frame, click Users
- In the right-click frame, either double-click Domain Admins
- Click the Members tab
- Click Add...
- In the bottom text box, type the (complete) user name of the person
- Click Check Names
- When the name has been resolved, click OK
Practical
Learning: Creating an Administrator
|
|
- Depending of your operating system, access the properties of the
built-in Administrators account
- Add the pkatts and the gdmonay accounts to it
- Click OK
Installing Microsoft SQL Server
|
|
After creating the accounts, if you haven't done so, you
must install
Microsoft SQL Server.
|
|