0% found this document useful (0 votes)
84 views

SQL Server

This document provides an overview of Module 1 of an introduction to Microsoft SQL Server 2014 course. It includes summaries of 3 lessons: 1. The Basic Architecture of SQL Server which discusses relational databases, sample databases, client server databases and queries. 2. SQL Server Editions and Versions which covers the different SQL Server versions released since 1989 and the main SQL Server editions. 3. Getting Started with SQL Server Management Studio which describes how to use SQL Server Management Studio to connect to SQL servers, work with databases and objects, manage scripts and projects, execute queries, and access product documentation. The document concludes with a demonstration of SQL Server 2014 tools and a lab assignment involving working with SQL Server
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

SQL Server

This document provides an overview of Module 1 of an introduction to Microsoft SQL Server 2014 course. It includes summaries of 3 lessons: 1. The Basic Architecture of SQL Server which discusses relational databases, sample databases, client server databases and queries. 2. SQL Server Editions and Versions which covers the different SQL Server versions released since 1989 and the main SQL Server editions. 3. Getting Started with SQL Server Management Studio which describes how to use SQL Server Management Studio to connect to SQL servers, work with databases and objects, manage scripts and projects, execute queries, and access product documentation. The document concludes with a demonstration of SQL Server 2014 tools and a lab assignment involving working with SQL Server
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Module 1

Introduction to Microsoft SQL


Server 2014
Module Overview

• The Basic Architecture of SQL Server


• SQL Server Editions and Versions
• Getting Started with SQL Server Management
Studio
Lesson 1: The Basic Architecture of SQL Server

• Relational Databases
• About the Course Sample Database
• Client Server Databases
• Queries
Relational Databases

Relational databases:
• Typically comprise of multiple tables
• Use joins to extract related data from multiple
objects
• Typically contain objects and data

Table: Customers SELECT *


FROM Orders
LEFT JOIN Customers
ON Orders.CustomerID = Customers.ID
WHERE Customers.ID = 134;

Table: Orders

Results: Orders for Customer


About the Course Sample Database

• TSQL database used in course


• Represents a business with products, customers,
orders, suppliers, employees
• Contains sample schemas:
• HR, Production, Sales
• Contains sample tables, views
• Scripts provided with labs and demos to recreate
database if needed
About the Course Sample Database

• TSQL database used in course


Client Server Databases

• Client software is separate from database engine


• Client software and database engine can be on
the same machine or connected over a network
• With correct configuration, databases can access
data in other databases over the network
Queries

• Set-based language
• Scripts
• Batches
CREATE TABLE HumanResources.Employees(
EmployeeID int PRIMARY KEY,
LastName nvarchar(25), FirstName nvarchar(25) );

GO

INSERT INTO HumanResources.Employees(


EmployeeID, LastName, FirstName)
VALUES
(123, O'Neill, Carlene);

GO
Lesson 2: SQL Server Editions and Versions

• SQL Server Versions


• SQL Server Editions
SQL Server Versions

SQL Server Versions


Version Release Year
1.0 1989
1.1 1991
4.2 1992
4.21 1994
6.0 1995
6.5 1996
7.0 1998
2000 2000
2005 2005
2008 2008
2008 R2 2010
2012 2012
2014 2014
SQL Server Editions

• SQL Server Editions

Main Editions Other Editions


Enterprise Parallel Data Warehouse
Standard Web
Business Intelligence Developer
Express
Express LocalDB
Lesson 3: Getting Started with SQL Server
Management Studio

• Starting SSMS
• Connecting to SQL Server
• Working with Object Explorer
• Working with Script Files and Projects
• Executing Queries
• Using Books Online
• Demonstration: Introducing Microsoft SQL Server
2014
Starting SSMS

• Launch SSMS from the Windows Start screen


• Or type "SSMS" into the "Search Programs and Files"
box
• Connect to an instance or work disconnected
• Settings include:
• Fonts and colors, line numbering, word wrap
• Which windows open at start

• Useful windows include query editor, Object


Explorer, and Solution Explorer
Connecting to SQL Server

• Connecting to SQL Server requires three items:


• Instance name
• Use the form host\instance, except for the default instance
• Database name
• A default database can be assigned to logons
• Authentication
• May be Windows Authentication or SQL Server Authentication
• Account must be provisioned by a database administrator
Working with Object Explorer

• Object Explorer is a graphical tool for managing SQL


Server and browsing objects at instance and database
levels
• Context-sensitive shortcut menus provide frequently
used commands
• Object definitions can be scripted out as T-SQL
statements to a query window, the clipboard, or a file
• New query windows can be started by right-clicking
databases in Object Explorer
• Changing the selected object in Object Explorer does not
change the existing connection in the query window
Working with Script Files and Projects

• T-SQL scripts are text files, typically given an .sql


extension
• SSMS can open, edit, and execute code in script files
directly
• SSMS can also organize scripts into logical containers.
• Scripts can be associated with SQL Server Script
projects (*.ssmssqlproj)
• Projects can be organized in solutions (*.ssmssln)
• Opening a solution in SSMS provides convenient access
to scripts in projects
• You will use projects throughout this course and its labs
Executing Queries

• To execute queries in SSMS:


• Open an existing script or start a new query editor
document
• Type in or select existing T-SQL statements
• Select Execute from the Query menu, press F5, or click
the Execute toolbar button
Using Books Online

• Books Online is the product documentation for


SQL Server
• In SQL Server 2014, Books Online does not ship
with the SQL Server installation media
• Configure Help to display content from MSDN
Library or download Help Collections to a local
computer
• Once configured, Help is available from:
• SSMS query editor (context-sensitive)
• SSMS Help menu
• Windows Start menu
Demonstration: Introducing Microsoft SQL
Server 2014

In this demonstration, you will see how to:


• Use SSMS to connect to an on-premises instance
of SQL Server 2014
• Explore databases and other objects
• Work with T-SQL scripts
Lab: Working with SQL Server 2014 Tools

• Exercise 1: Working with SQL Server Management


Studio
• Exercise 2: Creating and Organizing T-SQL scripts
• Exercise 3: Using Books Online

Logon Information
Virtual machine: 20461C-MIA-SQL
User name: ADVENTUREWORKS\Student
Password: Pa$$w0rd

Estimated Time: 30 minutes


Lab Scenario

• The Adventure Works Cycles Bicycle


Manufacturing Company has adopted SQL Server
2014 as its relational database management
system of choice. You are an information worker
who will be required to find and retrieve business
data from several SQL Server databases. In this
lab, you will begin to explore the new
environment and become acquainted with the
tools for querying SQL Server.
Module Review and Takeaways

• Review Question(s)

You might also like