Overview What is SQL Server? Creating databases Administration Security Backup.

Slides:



Advertisements
Similar presentations
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Advertisements

Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 9-1 COS 346 Day 20.
Advantage Data Dictionary. agenda Creating and Managing Data Dictionaries –Tables, Indexes, Fields, and Triggers –Defining Referential Integrity –Defining.
Brian Alderman | MCT, CEO / Founder of MicroTechPoint Pete Harris | Microsoft Senior Content Publisher.
Chapter 9 Auditing Database Activities
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Chapter 5: Configuring Users and Groups. Windows Vista User Accounts User accounts are the primary means of authentication Built-in Accounts –Administrator:
BUSINESS DRIVEN TECHNOLOGY
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
Session 7 Creating and Managing Databases. RDBMS and Data Management/ Session 7/2 of 27 Session Objectives Describe the system and user-defined databases.
Access Tutorial 10 Automating Tasks with Macros
1 Introducing Windows Backup There are different methods for starting Windows 2000 Backup. Requirements for running Windows 2000 Backup All users can back.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 13 Managing Databases with SQL Server 2000.
Overview of SQL Server Alka Arora.
Chapter 4 SQL. SQL server Microsoft SQL Server is a client/server database management system. Microsoft SQL Server is a client/server database management.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Today’s Objectives Chapters 10 and 11 Security in SQL Server –Manage server logins and database users. –Manage server-level, database-level, and application.
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
IS 221: DATABASE ADMINISTRATION Lecture 6:Create Users & Manage Users. Information Systems Department 1.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
ISM 4212 Lab Creating DB Tables 02 copyright Lars Paul Linden 2007.
Objectives Overview Define the term, database, and explain how a database interacts with data and information Describe the qualities of valuable information.
Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.
Storing Organizational Information - Databases
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
DATABASE TOOLS CS 260 Database Systems. Overview  Database accounts  Oracle SQL Developer  MySQL Workbench.
® Microsoft Access 2010 Tutorial 12 Managing and Securing a Database.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 9 Auditing Database Activities.
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 15: Reliability and Security in Database Servers Instructor’s.
2. SQL Security Objectives –Learn SQL Server 2000 components Contents –Understanding the Authentication Process –Understanding the Authorization Process.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Module 8: Managing Software Distribution. Collections Packages Programs Advertisements Collections Packages Programs Advertisements How Software.
IT System Administration Lesson 3 Dr Jeffrey A Robinson.
Session 1 Module 1: Introduction to Data Integrity
Agenda for Class 2/20/2014 Introduce Microsoft’s SQL Server database management system. Use the lab to discuss how to CREATE, DROP and populate (INSERT)
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
Database technology Introduction ER Modeling Database objects (intro) SQL.
Ch 12. Replication. Replication Place copies of data to a different location Use: Reduce locking conflict when multiple sites want to work on same set.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
SQL Server 2012 Session: 1 Session: 6 Creating and Managing Databases Data Management Using Microsoft SQL Server.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
7.5 Using Stored-Procedure and Triggers NAME MATRIC NUM GROUP Muhammad Azwan Bin Khairul Anwar CS2305A Muhammad Faiz Bin Badrol Shah CS2305B.
In this session, you will learn to: Manage databases Manage tables Objectives.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
19 Copyright © 2008, Oracle. All rights reserved. Security.
SQL Database Management
Architecture Review 10/11/2004
DBMS Programs MS SQL Server & MySQL
Managing Tables, Data Integrity, Constraints by Adrienne Watt
Module 5: Implementing Data Integrity by Using Constraints
Chapter 11 Managing Databases with SQL Server 2000
Ch 1 .Installing and configuring SQL Server 2005
Presentation transcript:

Overview What is SQL Server? Creating databases Administration Security Backup

What is SQL Server? Database management software  Own file structure  Own logins  Own security Access through 2 main ways:  Query Analyzer  Enterprise Manager

What is SQL Server? Consists of 3 Services:  MSSQLServer Data & query processing  SQL Server Agent Scheduled jobs & alerts  Microsoft Distributed Transaction Coordinator Handles data from multiple sources

Logging In Windows NT Authentication SQL Server Authentication

Query Analyzer Command-based interface  Complete access to SQL Server  Useful for creating scripts

Enterprise Manager Graphical User Interface  Often more intuitive  Easier to visualize

Viewing Available Databases Query Analyzer  Execute sp_helpdb system stored procedure

Viewing Available Databases Enterprise Manager  Expand Databases folder

Creating a Database Enterprise Manager  Right-click Database folder  Select New Database…

Demonstration Creating medical database Set growth and file size options

Transaction Log Records data modifications Rolls forward completed transactions Rolls back incomplete transactions

Data Types At least 25 data types  char, int, float  uniqueidentifier, datetime, image Can define own data types

User-Defined Data Types Based on existing data types Created with sp_addtype system stored procedure

Creating Tables Query Analyzer

Creating Tables Enterprise Manager  Right-click Tables  Click New Table…

Creating Tables Enterprise Manager (cont.)  Choose name

Creating Tables Enterprise Manager (cont.)  Create columns

Demonstration Creating tables for medical database  Product  Patient  Usage

Constraints Maintain data integrity  Domain Integrity  Entity Integrity  Referential Integrity

Constraints (cont.) Primary Key  Entity Integrity Foreign Key  Referential Integrity CHECK Constraint  Domain Integrity

Add Primary Key Query Analyzer

Add Primary Key Enterprise Manager  Right-click column of interest  Set Primary Key

Add Foreign Keys Query Analyzer

Add CHECK Query Analyzer

View Constraints Query Analyzer  Execute sp_helpconstraint system stored procedure

Rules Specify allowed values for columns Example  Allowed states: PA, WV, OH

Creating Rules Query Analyzer  Create rule with CREATE RULE statement  Bind rule with sp_bindrule system stored procedure  Unbind with sp_unbindrule

Create Rules Enterprise Manager  Input only rule name and definition

Create Rules Enterprise Manager (cont.)  Bind rule Open rule properties

Creating Rules Enterprise Manager (cont.)  Bind Rule (cont.) Click Bind Columns… on Rule Properties Select table and column

Inserting Data Query Analyzer  Use INSERT statement

Inserting Data Enterprise Manager  Right-click table name  Select Open Table ► Return all rows

Inserting Data Enterprise Manager (cont.)  Type values as needed

Stored Procedures Collection of SQL statements Can accept variables Can be used for security  Users can be granted right to use stored procedure, even if they do not have access to underlying tables

Creating Stored Procedures Query Analyzer  Use CREATE PROCEDURE statement  Define variables

Using Stored Procedures Use EXEC procedure_name Pass values by reference or position

Transactions Process statements as a group Must be committed  “All-or-nothing” – All statements are committed or none are If interrupted, transaction is rolled back automatically

Transactions Query Analyzer  Use BEGIN TRANSACTION and COMMIT TRANSACTION statements  Use ROLLBACK TRANSACTION to cancel

Transaction Example Committed transaction Rolled back transaction Interrupted transaction

Views Specify how data is seen Focus data Security  Grant permissions on Views

Creating Views Query Analyzer  Use CREATE VIEW statement

Creating Views Enterprise Manager  Add tables

Views Enterprise Manager (cont.)  Select column names  Enter Aliases

Security User Management  Roles  Logins  Users Program Security

Roles Operations that members of role can perform Users are assigned roles

Creating Roles Type Role name Select Standard Role

Creating Roles Open Role properties Click Permissions button

Creating Roles Set allowed actions  Table actions  Allowed Views  Allowed Stored Procedures

Logins Allow users to log in to SQL Server Defined under Security folder

Creating Logins Input Login name Set password Set defaults

Creating Logins Choose allowed databases Select Roles

Users Who is allowed to access database Role user has

Setting Users Only necessary if you did not set during login creation

Program Security SQL Server Home Page  News, tips, & tools

Program Security Microsoft Baseline Security Analyzer (MBSA)  Runs under Windows 2000 or XP  Checks program settings & security patches  Useful for many Microsoft programs, including SQL Server 7.0 and 2000

Program Security MBSA can be downloaded at:  ?url=/technet/security/tools/Tools/mbsahome.asp ?url=/technet/security/tools/Tools/mbsahome.asp

Backup Create Backup Device  Container for your database Schedule Backup jobs

Creating a Backup Device Enterprise Manager  Look under Management folder

Creating a Backup Device Enterprise Manager (cont.)  Set name  Set location

Backing Up Back up and restore from Databases folder

Backing Up Select your backup device as the Destination Set a schedule if desired

Check Jobs Check backup jobs under SQL Server Agent under the Management folder

Thank you! Slides and scripts available at:   Look for “Tutorials and Resources” Any questions?