Introduction to SQL Server for Windows Administrators Presented to WiNSUG 02/05/09 Bret Stateham Owner, Net Connex Blogs.netconnex.com.

Slides:



Advertisements
Similar presentations
Chapter 20 Oracle Secure Backup.
Advertisements

Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
SQL Server Basics for non-DBAs Anil Desai. Speaker Information Anil Desai –Independent consultant (Austin, TX) –Author of several SQL Server books –Instructor,
Anil Desai SQL Saturday #35 (Dallas, TX).  Anil Desai ◦ Independent consultant (Austin, TX) ◦ Author of several SQL Server books ◦ Instructor, “Implementing.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Lesson 19 – ADMINISTERING WINDOWS 2000 SERVER : THE BASICS.
Week 9 – Chapter 8 SQL 710 Methods to Backup Databases
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Administering Your.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Week 2 - Installation SQL SERVER2000 ENTERPRISE EDITION INSTALLATION.
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
Maintaining Windows Server 2008 File Services
Mike Fal - SQL SERVER SECURITY GRANTING, CONTROLLING, AND AUDITING DATABASE ACCESS March 17, 2011.
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
1 Objectives Discuss the Windows Printer Model and how it is implemented in Windows Server 2008 Install the Print Services components of Windows Server.
Overview What is SQL Server? Creating databases Administration Security Backup.
1 Chapter Overview Reviewing the Results of Installation Starting, Stopping, Pausing, and Modifying Microsoft SQL Server 2000 Services Working with Osql,
Chapter 8 Hardening Your SQL Server Instance. Hardening  Hardening The process of making your SQL Server Instance more secure  New features Policy based.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
MCTS Guide to Configuring Microsoft Windows Server 2008 Active Directory Chapter 3: Introducing Active Directory.
Module 1: Introduction to Microsoft SQL Server 7.0.
Overview of SQL Server Alka Arora.
September 18, 2002 Introduction to Windows 2000 Server Components Ryan Larson David Greer.
Introduction to SQL Server 2000 Security Dave Watts CTO, Fig Leaf Software
Today’s Objectives Chapters 10 and 11 Security in SQL Server –Manage server logins and database users. –Manage server-level, database-level, and application.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Module 7: Fundamentals of Administering Windows Server 2008.
Chapter 6 : Designing SQL Server Service-Level Security MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
Chapter 13 Users, Groups Profiles and Policies. Learning Objectives Understand Windows XP Professional user accounts Understand the different types of.
MICROSOFT SQL SERVER 2005 SECURITY  Special Purpose Logins and Users  SQL Server 2005 Authentication Modes  Permissions  Roles  Managing Server Logins.
Active Directory Administration Lesson 5. Skills Matrix Technology SkillObjective DomainObjective # Creating Users, Computers, and Groups Automate creation.
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.
Module 14 Configuring Security for SQL Server Agent.
1 Chapter Overview Introducing Replication Planning for Replication Implementing Replication Monitoring and Administering Replication.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
BSG Group - Dau Anh Trong1 Introduction about MS SQL Server 2005.
Esri UC 2014 | Technical Workshop | Administering Your Microsoft SQL Server Geodatabase Shannon Shields Chet Dobbins.
SQL Server 2005 Implementation and Maintenance Chapter 6: Security and SQL Server 2005.
Central Management Server Managing Your SQL Server Environment 1.
SQL SERVER AUDITING. Jean Joseph DBA/Consultant Contact Info: Blog:
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Introduction to: SQL Server Reporting Services Architecture, Development & Delivery.
Introduction to SQL Server  Working with MS SQL Server and SQL Server Management Studio.
1 BCS 4 th Semester. Step 1: Download SQL Server 2005 Express Edition Version Feature SQL Server 2005 Express Edition SP1 SQL Server 2005 Express Edition.
Copyright © New Signature Who we are: Focused on consistently delivering great customer experiences. What we do: We help you transform your business.
SQL Server Reporting Services for.NET Developers Bret Stateham
SQL Server Security The Low Hanging Fruit. Lindsay Clark Database Administrator at American Credit Acceptance
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
WELCOME! SQL Server Security. Scott Gleason This is my 9 th Jacksonville SQL Saturday Over ten years DBA experience Director of Database Operations
Administering Your Microsoft SQL Server Geodatabase
SQL Database Management
Administrating a Database
Module 1: SQL Server Overview
Maintaining Windows Server 2008 File Services
Get to know SQL Manager SQL Server administration done right 
Chapter 5 : Designing Windows Server-Level Security Processes
Active Directory Administration
Introduction to SQL Server 2000 Security
Chapter 11 Managing Databases with SQL Server 2000
Administrating a Database
Presentation transcript:

Introduction to SQL Server for Windows Administrators Presented to WiNSUG 02/05/09 Bret Stateham Owner, Net Connex Blogs.netconnex.com

Agenda The SQL Server Product Family SQL Server Installation Initial configuration Client Tools Databases Security Backup and Restore

The SQL Server Product Family SQL Server Database Engine SQL Server Analysis Services SQL Server Analysis Services SQL Server Integration Services SQL Server Reporting Services SQL Server Reporting Services SQL Server Analysis Services (SSAS) SQL Server Integration Services (SSIS) SQL Server Reporting Services (SSRS)

SQL Server Database Engine What people mean when they say “SQL Server” Relational Database Management System (RDBMS) Supports multiple databases per Instance Supports multiple instances per server Used for On Line Transaction Processing (OLTP) solutions

SQL Server Analysis Services Multi-Dimensional database engine Multiple databases with multiple cubes per instance Multiple instances per server Used for On Line Analytical Processing (OLAP) operations Databases are created in “Business Intelligence Development Studio” (BIDS) Includes Data Mining capabilities for discovering patterns in data.

SQL Server Integration Services Used to move data between databases and platforms Wizards: – “Import and Export Wizard” – “Copy Database Wizard” More complex development done in “Business Intelligence Development Studio” (BIDS) SQL Servers “Extract, Transform and Load” (ETL) tool

SQL Server Reporting Services Enterprise reporting platform Provides a website that users can go to for reports Reports can also be delivered via or as files in a folder share using subscriptions Can report on data in platforms other than SQL Server Again, Business Intelligence Development Studio is the development environment Includes “Report Builder” for power users

SQL Server Editions EditionDescription Enterprise EditionEverything that SQL Server offers. Standard EditionDepartmental or small business use. All services, but some features are limited. Workgroup EditionFor small workgroups. Limited features Developer EditionSame as express, but can be used in development only. Lists for $49.00 Express EditionFree database engine. Legal to use in production environments but with limited features and power. Compact EditionFor use on hand-held devices or as a small footprint in memory database engine.

Installation Demo

SQL Server Services ServiceDescription SQL Server ( )The SQL Server Database Engine SQL Server Active Directory HelperUsed for AD integration SQL Server Agent ( )Performs scheduled operations SQL Server Analysis Services ( )The multi-dimensional database engine SQL Server BrowserHelps clients find instances SQL Server FullText Search ( )Creates indexes on large character fields SQL Server Integration ServicesETL (Import and Export) SQL Server Reporting Services ( )Centralized reporting platform SQL Server VSS WriterVolume Shadowcopy Service integration

SQL Server Files Default Path: C:\Program Files\Microsoft SQL Server \80, \90, \100 Folders are the client tools SQL MSSQL.x are the various instances – MSSQL = Database Engine – OLAP = Analysis Services – Reporting Services = Reporting Services SQL 2008 – Folders are named: – MSSQL10. = SQL Database Engine – MSAS10. = Analysis Services – MSRS10. = Reporting Services

Registry Keys Software Configuration: HKLM\Software\Microsoft\Microsoft SQL Server * Service Configuration: HKLM\System\CurrentControlSet\Services\MSSQL*

Initial Configuration SQL Server Configuration Manager – Services – Server Network Configuration – Client Network Configuration Surface Area Configuration Manager – SQL 2005 Only (Goes away in 2008) – Enable features that are off by default – Some overlap with SQL Server Configuration Manager

Key Configurations Set a secure password on the SA account regardless of the security configuration Backup the system databases Apply service packs Backup the system databases again Use the SQL Server Configuration Manager to enable remote access

Client Tools SQL Server Management Studio (SSMS) – Replaces “Enterprise Manager” – Replaces “Query Analyzer” – Adds functionality that didn’t exist before (Analysis Services, Compact Edition, Reporting Services) SQLCMD (Command Line Tool) – Replaces “OSQL” – Allows interaction with SQL Server from the command line or batch files.

Databases From an Admin’s Point of View The Physical Database The Logical Database System Databases Creating Databases

The Physical Database A database is at least two files: – At least one database file (.mdf and.ndf) – At least one transaction log file (.ldf) – Most databases will only have one of each Data files store – The data in the tables and indexes – The code for the stored procedures, etc. – The “meta data” (object definitions, security, etc.) Log Files store – Details about the transactions that occur in the database.

The Logical Database Tables – Store the various types of data we want to work with (Employees, Products, etc) Indexes – Help SQL Server find your data quickly (Index by last name, postal code, phone number, etc) Views, Stored Procedures, Triggers, Functions – Code objects stored in the database for re-use – Adds a layer of security to the database

System Databases DatabaseUse MasterThe only database SQL Server knows about at start up Documents all the other databases Stores the server configuration values (like memory config,etc) Stores “logins” to control access to the instance ModelThe template database used when each database is created MSDBStores SQL Server Agent jobs, alerts, operators, schedules Stores backup and restore history Stores SSIS packages that are saved to “SQL Server” or “MSDB” TempDBUsed by SQL Server when it needs extra room during sorts, etc. Can be used by developers to store temporary data Is used in certain cases to store previous versions of data

Creating a Database SQL Server Management Studio (SSMS) File Placement – Data files and log files should be in different drives – Data files work well on striped arrays – Log files work well on mirror sets Choose an appropriate initial file size Choose appropriate file growth settings

Creating a Database Demo

SQL Server Security Authentication methods Instance Level Permissions User Accounts Database Level Permissions

Authentication Methods Windows Authentication – Recommended method – Uses Windows User Accounts and Groups – Easiest management in the long run SQL Authentication – The “SA” Account – Can use the same password policies as Windows – Use only in special situations Logins – Can be either “Windows” or “SQL” logins – Used to gain access to the instance

Instance Level Permissions Are stored in the “master” database Fixed Server Roles – Assign bundles of instance permissions to logins – Sysadmin: full control over the instance – Dbcreator: allowed to create databases All permissions are assignable – The “CONTROL” permission grants full control over any resource

User Accounts Are stored in each database Used to grant access to individual databases Map to a login “dbo” stands for Database Owner – Maps to the login that owns the database – Full control over the database “guest” exists, but is disabled by default

Database Level Permissions Fixed Database Roles – Assign bundles of permissions to users – Db_owner: Full control over the database – Db_ddladmin: can create any object – Db_datareader: can select data from any table Assignable Permissions – CONTROL, CREATE, SELECT, INSERT, UPDATE,etc. User Defined Roles – You can create roles to simply the assignment of permissions

SQL Server Security Overview Active Directory Windows Server SQL Server Logins & Roles Database Users & Roles Schema & Objects Administrator Domain Admins Administrator Administrators sa sysadmin dbo db_owner BUILTIN Administrators Creator or Owner

Creating Logins and Users Demo

Backup and Restore Backup Types Backup Media Third Party Backup Solutions Database Recovery Model Option Performing Backups Performing Restores

Backup Types Database Backups – Backup data from the data files – Full Backups: Backup everything – Differential Backups: Backup changes since the last full backup Transaction Log Backups – Backup any unbacked-up information in the transaction log – Act as “Incremental” backups – Allow us to restore our databases to the point of failure

Backup Media Tape – Can backup to tape if there is a tape device visible to SQL Server File – Can backup instead to a file on disk – Can be a local file or a unc path Can “Append” or “Overwrite” media when backing up Common solution – SQL Server to backup to disk – Enterprise backup solution backs up backup files

Third Party Backup Solutions Enterprise Backup Solutions support SQL Typically, and “Agent” is installed Most of them perform regular SQL Backups They store they backup data on their media

Database Recovery Model Option Each database has a “Recovery Model” option FULL – All transactions logged in detail, including bulk operations – Transactions are kept in the log until we backup – Best choice for most production databases BULK_LOGGED – All transactions are logged, Bulk operations only “lightly” – Bulk data is included in the log backup, not the live log – Transactions are kept in the log until we backup – Use this when you do a lot of bulk loads SIMPLE – Transactions are logged just like BULK_LOGGED – Transactions are cleared from the log when they are done – You can not backup the log – Good choice for development databases or databases where it is ok to lose some data.

Performing Backups

Performing Restores

Summary The SQL Server Product Family SQL Server Installation Initial configuration Client Tools Databases Security Backup and Restore

Thanks! Stay in touch: – – Blog: blogs.netconnex.com – Do you know about Microsoft Tag? gettag.mobi