0% found this document useful (0 votes)
8 views48 pages

Chapter 6 Installation

Uploaded by

Jesuispeter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views48 pages

Chapter 6 Installation

Uploaded by

Jesuispeter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 48

Chapter 6: Introduction Database

Development With SQL Server


1. Database Installation
 Step by Step Installation of Microsoft SQL
Server 2012
• .NET 3.5 SP1 is a requirement for SQL Server 2012 when you select
Database Engine, Reporting Services, Master Data Services, Data Quality
Services, Replication, or SQL Server Management Studio, and it is no
longer installed by SQL Server Setup.
• .NET 4.0 is a requirement for SQL Server 2012. SQL Server installs .NET
4.0 during the feature installation step.
• Windows PowerShell 2.0
• Internet Explorer 7 or a later version.

1
Chapter 6: Introduction Database
Development With SQL Server
 Step by Step Installation of Microsoft SQL
Server 2012
• .NET 3.5 SP1 is a requirement for SQL Server 2012 when you select
Database Engine, Reporting Services, Master Data Services, Data Quality
Services, Replication, or SQL Server Management Studio, and it is no
longer installed by SQL Server Setup.
• .NET 4.0 is a requirement for SQL Server 2012. SQL Server installs .NET
4.0 during the feature installation step.
• Windows PowerShell 2.0
• Internet Explorer 7 or a later version.

2
Chapter 6: Introduction Database
Development With SQL Server
 Hardware Requirements for Installing SQL
Server 2012
• SQL Server 2012 requires a minimum of 6 GB of available hard-disk space.
• SQL Server 2012 requires Super-VGA (800x600) or higher resolution
monitor.
• Minimum Memory: Express Editions: 512 MB, All other editions: 1 GB
• Recommended: Express Editions: 1 GB, All other editions: At least 4 GB.
• Minimum Processor Speed: x86 Processor: 1.0 GHz OR x64 Processor:
1.4 GHz
• Processor Type: x64 Processor: AMD Opteron, AMD Athlon 64, Intel
Xeon with Intel EM64T support, Intel Pentium IV with EM64T support
• x86 Processor: Pentium III-compatible processor or faster
• Recommended: 2.0 GHz or faster
3
Chapter 6: Introduction Database
Development With SQL Server
Installing SQL Server 2012

4
Chapter 6: Introduction Database
Development With SQL Server

5
Chapter 6: Introduction Database
Development With SQL Server

6
Chapter 6: Introduction Database
Development With SQL Server

7
Chapter 6: Introduction Database
Development With SQL Server

8
Chapter 6: Introduction Database
Development With SQL Server

9
Chapter 6: Introduction Database
Development With SQL Server

10
Chapter 6: Introduction Database
Development With SQL Server

11
Chapter 6: Introduction Database
Development With SQL Server

12
Chapter 6: Introduction Database
Development With SQL Server

13
Chapter 6: Introduction Database
Development With SQL Server

14
Chapter 6: Introduction Database
Development With SQL Server

15
Chapter 6: Introduction Database
Development With SQL Server

16
Chapter 6: Introduction Database
Development With SQL Server

17
Chapter 6: Introduction Database
Development With SQL Server

18
Chapter 6: Introduction Database
Development With SQL Server

19
Chapter 6: Introduction Database
Development With SQL Server

20
Chapter 6: Introduction Database
Development With SQL Server

21
Chapter 6: Introduction Introduction
Database Development With SQL
Server

22
Chapter 6: Introduction Database
Development With SQL Server

23
Chapter 6: Introduction Database
Development With SQL Server

24
Chapter 6: Introduction Database
Development With SQL Server

25
Chapter 6: Introduction Database
Development With SQL Server

26
Chapter 6: Introduction Database
Development With SQL Server

27
Chapter 6: Introduction Database
Development With SQL Server

28
Chapter 6: Introduction Database
Development With SQL Server

29
Chapter 6: Introduction Database
Development With SQL Server
 MS SQL Server Login Database

30
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
SQL is a standard language for accessing and manipulating databases.

31
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
 What Can SQL do?
• SQL can execute queries against a database
• SQL can retrieve data from a database
• SQL can insert records in a database
• SQL can update records in a database
• SQL can delete records from a database
• SQL can create new databases
• SQL can create new tables in a database
• SQL can create stored procedures in a database
• SQL can create views in a database
• SQL can set permissions on tables, procedures, and views
32
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
SQL functions fit into two broad categories:
– Data definition language
• SQL includes commands to:
– Create database objects, such as tables, indexes, and views
– Define access rights to those database objects
– Data manipulation language
• Includes commands to insert, update, delete, and retrieve
data within database tables

33
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server

34
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server

35
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server

36
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
Creating the Database
• Following two tasks must be completed:
– Create database structure
– Create tables that will hold end-user data
• First task:
– RDBMS creates physical files that will hold
database
– Tends to differ substantially from one RDBMS to
another
37
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
Data Types
• Data type selection is usually dictated by
nature of data and by intended use
• Pay close attention to expected use of attributes
for sorting and data retrieval purposes

38
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
Data Types

39
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
Creating Table Structures
• Use one line per column (attribute) definition
• Use spaces to line up attribute characteristics
and constraints
• Table and attribute names are capitalized
• NOT NULL specification
• UNIQUE specification
40
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
Creating Table Structures
• Primary key attributes contain both a NOT
NULL and a UNIQUE specification
• RDBMS will automatically enforce referential
integrity for foreign keys
• Command sequence ends with semicolon

41
Chapter 6: Introduction Database
Development With SQL Server
2. Introduction to SQL Server
 Basic SQL Command
• Select Statement
• Insert INTO Statement
• Update Statement
• Delete Statement

42
Chapter 6: Introduction Database
Development With SQL Server
 SQL Statement

tblstudent
Column Name Data Type
studid int
stuname nvarchar(50)

43
Chapter 6: Introduction Database
Development With SQL Server
 SQL Statement
• Select Statement : is used to select data from a database.

Syntax:

SELECT column_name FROM table_name

Or

SELECT * FROM table_name

Ex. select studid, stuname from tblstudent

44
Chapter 6: Introduction Database
Development With SQL Server
 SQL Statement
• Insert Statement : is used to insert new records in a table.

Syntax:

INSERT INTO table_nameVALUES (value1,value2,value3,...)

Ex. Insert into tblstudent values(2,'Chan')

45
Chapter 6: Introduction Database
Development With SQL Server
 SQL Statement
• Update Statement : is used to update existing records in a table..

Syntax:

UPDATE table_name SET column1=value1,column2=value2,...WHERE


some_column=some_value;

Ex. Update tblstudent set stuname= 'John' where studid= 1

46
Chapter 6: Introduction Database
Development With SQL Server
 SQL Statement
• Delete Statement : is used to delete records in a table.

Syntax:

DELETE FROM table_name WHERE some_column=some_value;

Ex. Delete from tblstudent where studid = 2

47
The End

48

You might also like