IT 456-01 System Administration Lesson 3 Dr Jeffrey A Robinson.

Slides:



Advertisements
Similar presentations
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Advertisements

Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Visibility Information Exchange Web System. Source Data Import Source Data Validation Database Rules Program Logic Storage RetrievalPresentation AnalysisInterpretation.
--What is a Database--1 What is a database What is a Database.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Fundamentals, Design, and Implementation, 9/e Chapter 7 Using SQL in Applications.
Implementing ISA Server Caching. Caching Overview ISA Server supports caching as a way to improve the speed of retrieving information from the Internet.
Integrate into existing systems with PowerShell integration modules Extend by building PS modules to enable integrating into other systems Optimize.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 14: Troubleshooting Windows Server 2003 Networks.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Database Management Systems (DBMS)
 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Module 13 Automating SQL Server 2008 R2 Management.
SEMESTER 1, 2013/2014 DB2 APPLICATION DEVELOPMENT OVERVIEW.
Introduction to Databases and Database Languages
Overview What is SQL Server? Creating databases Administration Security Backup.
Introduction to Databases. Case Example: File based Processing Real Estate Agent’s office Property for sale or rent Potential Buyer/renter Staff/employees.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 13 Managing Databases with SQL Server 2000.
Chapter 15 Database Administration and Security
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 7-1 David M. Kroenke’s Chapter Seven: SQL for Database Construction and.
Native Support for Web Services  Native Web services access  Enables cross platform interoperability  Reduces middle-tier dependency (no IIS)  Simplifies.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
Components of Database Management System
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
1 SQL Server 2000 Administration Kashef Mughal MSB.
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Triggers and Stored Procedures in DB 1. Objectives Learn what triggers and stored procedures are Learn the benefits of using them Learn how DB2 implements.
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 Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Navigating SQL Server Lesson 3. Skills Matrix Graphical User Interface (GUI) Management Tools SQL Server Management Studio SQL Server Configuration Manager.
Lesson Overview 3.1 Components of the DBMS 3.1 Components of the DBMS 3.2 Components of The Database Application 3.2 Components of The Database Application.
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Differences Training BAAN IVc-BaanERP 5.0c: Application Administration, Customization and Exchange BaanERP 5.0c Tools / Exchange.
IT System Administration Dr Jeffrey A Robinson.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Unit 17: SDLC. Systems Development Life Cycle Five Major Phases Plus Documentation throughout Plus Evaluation…
Stored Procedures / Session 4/ 1 of 41 Session 4 Module 7: Introducing stored procedures Module 8: More about stored procedures.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
IT420: Database Management and Organization Triggers and Stored Procedures 24 February 2006 Adina Crăiniceanu
Microsoft ® Official Course Module 6 Managing Software Distribution and Deployment by Using Packages and Programs.
SQL Server 2012 Session: 1 Session: 4 SQL Azure Data Management Using Microsoft SQL Server.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
SQL Triggers, Functions & Stored Procedures Programming Operations.
SQL Basics Review Reviewing what we’ve learned so far…….
Presentation on Online Shopping
7.5 Using Stored-Procedure and Triggers NAME MATRIC NUM GROUP Muhammad Azwan Bin Khairul Anwar CS2305A Muhammad Faiz Bin Badrol Shah CS2305B.
Practical MSBI(SSIS, SSAS,SSRS) online training. Contact Us: Call: Visit:
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
 1- Definition  2- Helpdesk  3- Asset management  4- Analytics  5- Tools.
SQL Database Management
Architecture Review 10/11/2004
Trigger used in PosgreSQL
Managing, Storing, and Executing DTS Packages
Introduction to Visual Basic 2008 Programming
Introduction What is a Database?.
Download Microsoft Exam Dumps - Valid Microsoft Question Answers - Realexamdumps.com
PL/SQL Scripting in Oracle:
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Chapter 7 Using SQL in Applications
Chapter 11 Managing Databases with SQL Server 2000
Presentation transcript:

IT System Administration Lesson 3 Dr Jeffrey A Robinson

Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and Using a Database Week 4 - Using the SQL Server Agent Service Week 5 - Disaster Recovery Week 6 - SQL Server Security Week 7 - Performance Monitoring Week 8 - Performance Optimization Week 9 - High Availability

Unit 3 Programmable objects allow efficient reuse of code. User-defined functions can return a single value or a tabular value set. A stored procedure can provide security and performance benefits. Triggers can extend business rule enforcement beyond the realm of constraints. These programmable objects, as well as data types and aggregates, can be created from common language runtime (CLR) code that can be integrated into SQL Server.

SQL Server Management Studio (SSMS) has the capability of capturing the Transact-SQL (T- SQL) code corresponding to an administrative task, such as database creation, performed in the graphical user interface (GUI). This allows the administrator to perform tasks using the familiar and intuitive GUI interface, but also to capture the code for disaster recovery or other purposes. The fully qualified name of a database object is server.database.schema.object.

SQL SQL is a set-based query language used to retrieve and modify data in a relational database. There are American National Standards Institute (ANSI) standards that most versions of SQL adhere to. The version of SQL used by Microsoft SQL Server is Transact-SQL, or T- SQL.

Stored Procedures There are two aspects of stored procedures that make them powerful: There are two aspects of stored procedures that make them powerful: –sprocs are efficient, –and they can have optional input and output parameters. –and they can have optional input and output parameters.

Stored Procedures The efficiency comes from the fact that after the first time they are executed, the query plan for their execution is stored in SQL Server's procedure cache in RAM. This eliminates the steps of parsing (checking for correct query syntax), creation of a query tree (all referenced objects are translated into their object IDs), and compilation (the query optimizer's deciding on a query plan and placing the query plan in procedure cache). Efficiency of network traffic is achieved because when a front-end application on a client computer calls a stored procedure on a back-end SQL Server, only the call is sent across the network.

Stored Procedures A stored procedure can take input parameters. Here is an example that would produce a list of all orders placed by a particular customer and since a particular date What are the parameters?

When the above sproc is called, the input variables may be specified in one of two ways: (1) in order When the above sproc is called, the input variables may be specified in one of two ways: (1) in order EXEC Sales.pCustomerOrderList 25, ' '; EXEC Sales.pCustomerOrderList 25, ' '; or (2) by giving the name of the input parameter, in which case the parameters may be listed in any order or (2) by giving the name of the input parameter, in which case the parameters may be listed in any order EXEC = = 25; EXEC = = 25; Of course, when using the by parameter option, you must know the names of the parameters within the sproc's definition

Triggers What is a trigger? (Hint: they can occur with INSERT, UPDATE or DELETE queries) Types:AFTER INSTEAD OF

Unit 3 assignment Write a 200–300 word response to each of the following topics. 1. Define five options used when creating a database and identify the importance of each option. 2. Define the options for the recovery method available when creating a database. Identify the strengths and weaknesses of each option. 3. Define the terms stored procedure and function. Identify a scenario in which each is used.

Unit 3 Project For this Unit's Project you will: –Develop a stored procedure within the NWTraders database to evaluate characteristics of a customer and his/her purchases or employee and the purchases he/she have been involved in the procurement. Examples include the evaluation of purchases by customer by region, zip code with items or evaluation of employees by title, birthdate, region or zipcode. –

Introduction to Tlogs What is a transaction log? What are COMMITS? What is an UNCOMMIT? What is the relevance of a TLOG

TLOG TLOGS allow: UNDOs Real Time recovery Multi-threading of users Transaction history, traceability, security auditing Multiple machine synchronization (transaction shipping) Secondary and Tertiary machines

More on TLOGS What price TLOG? I/O bandwidth Disk space and growth Overhead PROS and CONS

Next week Week 4 - Using the SQL Server Agent Service More stuff on TLOGs

Unit 4 Using the SQL Server Agent Service The SQL Server Agent service runs the components of task automation. Jobs, maintenance plans, and alerts may be configured to ensure that repetitive tasks and responses to problems execute automatically. Jobs can have multiple job steps, with flow from one job step to another based on the success or failure of a step. A job step for a Database Engine job may be a transact-SQL script, a Windows executable, or an ActiveX script.