Uploaded by Nice Given Montaniel

Lesson 2.1

advertisement
Studio Program
SQL Server Management Studio
Program (SSMS)
is
a tool that presents a
graphical interface for
managing, configuring,
monitoring, and
administering instances of
the SQL Server.
The Object Explorer is the central feature of
SSMS which allows users to browse, select,
and manage any of the objects within the
server.
Connect to Server Dialog box
includes:
 Server
Type – is the default instance of the SQL
Server.
 Server
Name – is the default name or instance of
the SQL Server. This name was added as an
instance during the installation process.
 Authentication
– is a Windows Authentication to
establish a connection with the SQL Server.
SQL Server Window is divided
into two parts:
 Object
Explorer – consists of SQL objects
that you can alter or view.
 Document
Window – consist of components
or contents of SQL objects in the left side. It
is the largest portion of the Management
Studio.
SQL Server Database Engine
Consists of:
 Databases
– the facility to create and manipulate
databases
 Security – the facility to identify and define
database owner users, their functions, and roles.
 Server Objects – the facility that will let you back
up, restore, trigger, and link database servers.
 Replication – the facility that will allow you to have
local subscriptions
 Management – the facility that will allow you to
manage data tier applications, apply policy
management, and determine logs.
Creating Tables
 In
relational database, a table is a collection
of data elements organized in terms of rows
and columns.
 Each
single piece of data is a field in the
table.
A
row of a database with data is called
record.
 The
intersection of rows and columns or fields
and records is called a file.
Section
Code
Subject
Code
Day
Time
Room
Teacher
JHS – G9 MATH101
F
7:15 – 8:15 307
HAZELC
JHS – G9 SCI101
W
2:15 – 3:15 307
LORENZD
JHS – G9 ENG101
MTW
8:15 – 9:15 307
ALEXISB
JHS – G9 AP101
TWTHF
12:15-1:15
BAYSONN
JHS – G9 COMP101 MTTHF
307
1:15 – 2:15 307
NICEM
In assigning a table name, note the
following recommended conventions:

May use the tbl – prefix to indicate that the object is
table.

First character must be a letter.

Avoid using underscore (_), at sign (@), or number sign
(#) as the first character of the table name . These may
have special meaning in SQL Server.

Must not be a Transact-SQL reserved word.

Spaces are not allowed; use underscore (_) to separate
words.
Download