0% found this document useful (0 votes)
313 views500 pages

20462D Administering Microsoft® SQL Server® 2014 Databases PDF

Uploaded by

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

20462D Administering Microsoft® SQL Server® 2014 Databases PDF

Uploaded by

hanuman sqlboy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 500
OFFICIAL MICROSOFT LEARNING PRODUCT 20462D Administering Microsoft® SQL Server® 2014 Databases 204620: Adiistsing Micosoh® SOL Server® 201 Databases Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, end no association with any real company, organization, product, domain name, e-mail addres, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws isthe responsibilty of the User. Without limiting the rights under copyright, no part ofthis document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. ‘The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the products with any Microsoft technologies. The inclusion of a ‘manufacturer or product does not imply endorsement of Microsoft of the manufacturer or product. Links may be provided to third party sites. Such sites are not under the control of Microsoft and Microsoft is not responsible forthe contents of any linked site or any link contained ina linked site, or any changes or Updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement of Microsoft ofthe site or the products contained therein, © 2016 Microsoft Corporation, All rights reserved Microsoft and the trademarks listed at a aspx are trademarks of the Microsoft group of companies Al other trademark ae property oftheir respective owners Product Number: 204620 Part Number: X20-90570 Released: 01/2016 MICROSOFT LICENSE TERMS MICROSOFT INSTRUCTOR-LED COURSEWARE ‘These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to your use of the content accompanying this agreement which includes the media on which you received it, if any, These license terms also apply to Trainer Content and any updates and supplements for the Licensed Content unless other terms accompany those items. If so, those terms apply. BY ACCESSING, DOWNLOADING OR USING THE LICENSED CONTENT, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT ACCESS, DOWNLOAD OR USE THE LICENSED CONTENT. If you comply with these license terms, you have the rights below for each license you acquire. 1. DEFINITIONS. a. “Authorized Learning Center” means a Microsoft IT Academy Program Member, Microsoft Learning Competency Member, or such other entity as Microsoft may designate from time to time. b. “Authorized Training Session” means the instructor-led training class using Microsoft Instructor-Led Courseware conducted by a Trainer at or through an Authorized Learning Center. . “Classroom Device” means one (1) dedicated, secure computer that an Authorized Learning Center owns or controls that is located at an Authorized Learning Center’ training facilities that meets or exceeds the hardware level specified for the particular Microsoft Instructor-Led Courseware. d. “End User” means an individual who is (i) duly enrolled in and attending an Authorized Training Session cr Private Training Session, (ii) an employee of a MPN Member, or (ii) a Microsoft full-time employee. @. “Licensed Content” means the content accompanying this agreement which may include the Microsoft Instructor-Led Courseware or Trainer Content. f. “Microsoft Certified Trainer” or “MCT” means an individual who is (i) engaged to teach a training session to End Users on behalf of an Authorized Learning Center or MPN Member, and (ji) currently certified as a Microsoft Certified Trainer under the Microsoft Certification Program. 9. “Microsoft Instructor-Led Courseware” means the Microsoft-branded instructor-led training course that. ‘educates IT professionals and developers on Microsoft technologies. A Microsoft Instructor-Led Courseware title may be branded as MOC, Microsoft Dynamics or Microsoft Business Group courseware. h. "Microsoft IT Academy Program Member” means an active member of the Microsoft IT Academy Program, i. “Microsoft Learning Competency Member” means an active member of the Microsoft Partner Network program in good standing that currently holds the Learning Competency status. j. "MOC" means the "Official Microsoft Learning Product” instructor-led courseware known as Microsoft Official Course that educates IT professionals and developers on Microsoft technologies. k. "MPN Member” means an active Microsoft Partner Network program member in good standing. “Personal Device” means one (1) personal computer, device, workstation or other digital electronic device that you personally own or control that meets or exceeds the hardware level specified for the particular Microsoft Instructor-Led Courseware. m, “Private Training Session” means the instructor-led training classes provided by MPN Members for corporate customers to teach a predefined learning objective using Microsoft Instructor-Led Courseware, ‘These classes are not advertised or promoted to the general public and class attendance is restricted to individuals employed by or contracted by the corporate customer. 1. “Trainer” means (i) an academically accredited educator engaged by a Microsoft IT Academy Program ‘Member to teach an Authorized Training Session, and/or (ii) a MCT. ©. “Trainer Content” means the trainer version of the Microsoft Instructor-Led Courseware and additional supplemental content designated solely for Trainers’ use to teach a training session using the Microsoft Instructor-Led Courseware. Trainer Content may include Microsoft PowerPoint presentations, trainer preparation guide, train the trainer materials, Microsoft One Note packs, classroom setup guide and Pre~ release course feedback form. To clarify, Trainer Content does not include any software, virtual hard disks or virtual machines. 2. USE RIGHTS. The Licensed Content is licensed not sold. The Licensed Content is licensed on a one copy per user basis, such that you must acquire a license for each individual that accesses or uses the Licensed Content, 2.1 Below are five separate sets of use rights. Only one set of rights apply to you. a. If you are a Microsoft IT Academy Program Member: i, Each license acquired on behalf of yourself may only be used to review one (1) copy of the Microsoft Instructor-Led Courseware in the form provided to you. If the Microsoft Instructor-Led Courseware is. in digital format, you may install one (1) copy on up to three (3) Personal Devices. You may not install the Microsoft Instructor-Led Courseware on a device you do nat own or control. ji, For each license you acquire on behalf of an End User or Trainer, you may either: 1. distribute one (1) hard copy version of the Microsoft Instructor-Led Courseware to one (1) End User who is enrolled in the Authorized Training Session, and only immediately prior to the commencement of the Authorized Training Session that is the subject matter of the Microsoft, Instructor-Led Courseware being provided, or provide one (1) End User with the unique redemption code and instructions on how they can access one (1) digital version of the Microsoft Instructor-Led Courseware, oF 3. provide one (1) Trainer with the unique redemption code and instructions on how they can access one (1) Trainer Content, provided you comply with the following: ii, you will only provide access to the Licensed Content to those individuals who have acquired a valid license to the Licensed Content, iv. you will ensure each End User attending an Authorized Training Session has their own valid licensed copy of the Microsoft Instructor-Led Courseware that is the subject of the Authorized Training Session, ¥. you will ensure that each End User provided with the hard-copy version of the Microsoft Instructor Led Courseware will be presented with a copy of this agreement and each End User will agree that their use of the Microsoft Instructor-Led Courseware will be subject to the terms in this agreement prior to providing them with the Microsoft Instructor-Led Courseware. Each individuel will be required to denote their acceptance of this agreement in a manner that is enforceable under local law prior to their accessing the Microsoft Instructor-Led Courseware, vi. you will ensure that each Trainer teaching an Authorized Training Session has their own valid licensed copy of the Trainer Content that is the subject of the Authorized Training Session, vii. you will only use qualified Trainers who have in-depth knowledge of and experience with the Microsoft technology that is the subject of the Microsoft Instructor-Led Courseware being taught for all your Authorized Training Sessions, viii. you will only deliver a maximum of 15 hours of training per week for each Authorized Training Session that uses a MOC title, and ix. you acknowledge that Trainers that are not MCTs will not have access to all of the trainer resources. for the Microsoft Instructor-Led Courseware, If you are a Microsoft Learning Competency Member: i, Each license acquired on behalf of yourself may only be used to review one (1) copy of the Microsoft Instructor-Led Courseware in the form provided to you. If the Microsoft Instructor-Led Courseware is. in digital format, you may install one (1) copy on up to three (3) Personal Devices. You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control. For each license you acquire on behalf of an End User or Trainer, you may either: 1, distribute one (1) hard copy version of the Microsoft Instructor-Led Courseware to one (1) End User attending the Authorized Training Session and only immediately prior to the commencement of the Authorized Training Session that is the subject matter of the Microsoft Instructor-Led Courseware provided, or 2. _ provide one (1) End User attending the Authorized Training Session with the unique redemption code and instructions on how they can access one (1) digital version of the Microsoft Instructor- Led Courseware, or 3. you will provide one (1) Trainer with the unique redemption code and instructions on how they can access one (1) Trainer Content, provided you comply with the following: i. you will only provide access to the Licensed Content to those individuals who have acquired a valid license to the Licensed Content, iv. you will ensure that each End User attending an Authorized Training Session has their own valid licensed copy of the Microsoft Instructor-Led Courseware that is the subject of the Authorized Training Session, V. you will ensure that each End User provided with a hard-copy version of the Microsoft Instructor-Led Courseware will be presented with a copy of this agreement and each End User will agree that their Use of the Microsoft Instructor-Led Courseware will be subject to the terms in this agreement prior to providing them with the Microsoft Instructor-Led Courseware. Each individual will be required to denote their acceptance of this agreement in 2 manner that is enforceable under local law prior to their accessing the Microsoft Instructor-Led Courseware, vi. you will ensure that each Trainer teaching an Authorized Training Session has their own valid licensed copy of the Trainer Content that is the subject of the Authorized Training Session, vii. you will only use qualified Trainers who hold the applicable Microsoft Certification credential that is the subject of the Microsoft Instructor-Led Courseware being taught for your Authorized Training Sessions, viii, you will only use qualified MCTs who also hold the applicable Microsoft Certification credential that is the subject of the MOC title being taught for all your Authorized Training Sessions using MOC, ix. you will only provide access to the Microsoft Instructor-Led Courseware to End Users, and x. you will only provide access to the Trainer Content to Trainers, « If you are a MPN Member: i, Each license acquired on behalf of yourself may only be used to review one (1) copy of the Microsoft Instructor-Led Courseware in the form provided to you. If the Microsoft Instructor-Led Courseware is in digital format, you may install one (1) copy on up to three (3) Personal Devices. You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control. ji, For each license you acquire on behalf of an End User or Trainer, you may either: 1, distribute one (1) hard copy version of the Microsoft Instructor-Led Courseware to one (1) End User attending the Private Training Session, and only immediately prior to the commencement of the Private Training Session that is the subject matter of the Microsoft Instructor-Led Courseware being provided, or 2. provide one (1) End User who is attending the Private Training Session with the unique redemption code and instructions on how they can access one (1) digital version of the Microsoft Instructor-Led Courseware, or 3. you will provide one (1) Trainer who is teaching the Private Training Session with the unique redemption code and instructions on how they can access one (1) Trainer Content, provided you comply with the following: i. you will only provide access to the Licensed Content to those individuals who have acquired a valid license to the Licensed Content, iv. you will ensure that each End User attending an Private Training Session has their own valid licensed copy of the Microsoft Instructor-Led Courseware that is the subject of the Private Training Session, ¥. you will ensure that each End User provided with a hard copy version of the Microsoft Instructor-Led Courseware will be presented with a copy of this agreement and each End User will agree that their Use of the Microsoft Instructor-Led Courseware will be subject to the terms in this agreement prior to providing them with the Microsoft Instructor-Led Courseware. Each individual will be required to denote their acceptance of this agreement in 2 manner that is enforceable under local law prior to their accessing the Microsoft Instructor-Led Courseware, vi. you will ensure that each Trainer teaching an Private Training Session has their own valid licensed copy of the Trainer Content that is the subject of the Private Training Session, vii. you will only use qualified Trainers who hold the applicable Microsoft Certification credential that is the subject of the Microsoft Instructor-Led Courseware being taught for all your Private Training Sessions, viii. you will only use qualified MCTs who hold the applicable Microsoft Certification credential that is the subject of the MOC title being taught for all your Private Training Sessions using MOC, ix. you will only provide access to the Microsoft Instructor-Led Courseware to End Users, and x. you will only provide access to the Trainer Content to Trainers. If you are an End User: For each license you acquire, you may use the Microsoft Instructor-Led Courseware solely for your personal training use. If the Microsoft Instructor-Led Courseware is in digital format, you may access the Microsoft Instructor-Led Courseware online using the unique redemption code provided to you by the training provider and install and use one (1) copy of the Microsoft Instructor-Led Courseware on up to three (3) Personal Devices. You may also print one (1) copy of the Microsoft Instructor-Led Courseware. You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control. If you are a Trainer. i, For each license you acquire, you may install and use one (1) copy of the Trainer Content in the form provided to you on one (1) Personal Device solely to prepare and deliver an Authorized Training Session or Private Training Session, and install one (1) additional copy on another Personal Device as a backup copy, which may be used only to reinstall the Trainer Content. You may not install or use a copy of the Trainer Content on a device you do not own or control. You may also print one (1) copy of the Trainer Content solely to prepare for and deliver an Authorized Training Session or Private Training Session. 3. You may customize the written portions of the Trainer Content that are logically associated with instruction of a training session in accordance with the most recent version of the MCT agreement. If you elect to exercise the foregoing rights, you agree to comply with the following: (i) customizations may only be used for teaching Authorized Training Sessions and Private Training Sessions, and (i) all customizations will comply with this agreement. For clarity, any use of “customize”refers only to changing the order of slides and content, and/or not using all the slides or content, it does not mean changing or modifying any slide or content, 2.2 Separation of Components. The Licensed Content is licensed as a single unit and you may not separate their components and install them on different devices. 2.3 Redistribution of Licensed Content. Except as expressly provided in the use rights above, you may not distribute any Licensed Content or any portion thereof (including any permitted modifications) to any third parties without the express written permission of Microsoft 24 Third Party Notices. The Licensed Content may include third party code tent that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party code ntent are included for your information only. 2.5 Additional Terms. Some Licensed Content may contain components with additional terms, conditions, and licenses regarding its use. Any non-conflicting terms in those conditions and licenses also apply to your use of that respective component and supplements the terms described in this agreement. LICENSED CONTENT BASED ON PRE-RELEASE TECHNOLOGY. If the Licensed Content's subject matter is based on a pre-release version of Microsoft technology ("Pre-release’’), then in addition to the other provisions in this agreement, these terms also apply: a. Pre-Release Licensed Content. This Licensed Content subject matter is on the Pre-release version of the Microsoft technology. The technology may not work the way a final version of the technology will and we may change the technology for the final version. We also may not release a final version. Licensed Content based on the final version of the technology may not contain the same information as the Licensed Content based on the Pre-release version. Microsoft is under no obligation to provide you with any further content, including any Licensed Content based on the final version of the technology. b. Feedback. If you agree to give feedback about the Licensed Content to Microsoft, either directly or through its third party designee, you give to Microsoft without charge, the right to use, share and ‘commercialize your feedback in any way and for any purpose. You also give to third parties, without charge, any patent rights needed for their products, technologies and services to use or interface with any specific parts of a Microsoft technology, Microsoft product, or service that includes the feedback, You will not give feedback that is subject to a license that requires Microsoft to license its technology, technologies, or products to third parties because we include your feedback in them, These rights survive this agreement. ©. Pre-release Term. If you are an Microsoft IT Academy Program Member, Microsoft Learning Competency Member, MPN Member or Trainer, you will cease using all copies of the Licensed Content on the Pre-release technology upon (i) the date which Microsoft informs you is the end date for using the Licensed Content on the Pre-release technology, or (i) sixty (60) days after the commercial release of the technology that is the subject of the Licensed Content, whichever is earliest ("Pre-release term’). Upon expiration or termination of the Pre-release term, you will irretrievably delete and destroy all copies of the Licensed Content in your possession or under your control. 10. 11. a SCOPE OF LICENSE. The Licensed Content is licensed, not sold. This agreement only gives you some rights to use the Licensed Content. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the Licensed Content only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the Licensed Content that only allows you to use it in certain ways, Except as expressly permitted in this agreement, you may not: + access or allow any individual to access the Licensed Content if they have not acquired a valid license for the Licensed Content, ‘+ alter, remove or obscure any copyright or other protective notices (including watermarks), branding or identifications contained in the Licensed Content, modify or create a derivative work of any Licensed Content, publicly display, or make the Licensed Content available for others to access or use, copy, print, install, sell, publish, transmit, lend, adapt, reuse, link to or post, make available or distribute the Licensed Content to any third party, work around any technical limitations in the Licensed Content, or reverse engineer, decompile, remove or otherwise thwart any protections or disassemble the Licensed Content except and only to the extent that applicable lav expressly permits, despite this limitation. RESERVATION OF RIGHTS AND OWNERSHIP. Microsoft reserves all rights not expressly granted to you in this agreement. The Licensed Content is protected by copyright and other intellectual property laws and treaties. Microsoft or its suppliers own the ttle, copyright, and other intellectual property rights in the Licensed Content. EXPORT RESTRICTIONS. The Licensed Content is subject to United States export laws and regulations, You must comply with all domestic and international export laws and regulations that apply to the Licensed Content. These laws include restrictions on destinations, end users and end use. For additional information, see winw.microsoft.com/exporting. SUPPORT SERVICES. Because the Licensed Content is "as is", we may not provide support services for it. TERMINATION. Without prejudice to any other rights, Microsoft may terminate this agreement if you fail ‘to comply with the terms and conditions of this agreement. Upon termination of this agreement for any reason, you will immediately stop all use of and delete and destroy all copies of the Licensed Content in your possession or under your control. LINKS TO THIRD PARTY SITES. You may link to third party sites through the use of the Licensed Content, The third party sites are not under the control of Microsoft, and Microsoft is not responsible for the contents of any third party sites, any links contained in third party sites, or any changes or updates to third party sites. Microsoft is not responsible for webcasting or any other form of transmission received from any third party sites. Microsoft is providing these links to third party sites to you only as a convenience, and the inclusion of any link does not imply an endorsement by Microsoft of the third party site ENTIRE AGREEMENT. This agreement, and any additional terms for the Trainer Content, updates and supplements are the entire agreement for the Licensed Content, updates and supplements. APPLICABLE LAW. United States. If you acquired the Licensed Content in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws, principles, The laws of the state where you live govern all other claims, including claims under state ‘consumer protection laws, unfair competition laws, and in tort. b. Outside the United States. If you acquired the Licensed Content in any other country, the laws of that country apply. 12. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the Licensed Content, This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so, 13. DISCLAIMER OF WARRANTY. THE LICENSED CONTENT IS LICENSED "AS-IS" AND "AS AVAILABLE.” YOU BEAR THE RISK OF USING IT, MICROSOFT AND ITS RESPECTIVE AFFILIATES GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT AND ITS RESPECTIVE AFFILIATES EXCLUDES ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 14, LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT, ITS RESPECTIVE AFFILIATES AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO US$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to © anything related to the Licensed Content, services, content (including code) on third party Internet. sites or third-party programs; and © claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. It also applies even if Microsoft knew or should have known about the possibilty of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. Please note: As this Licensed Content is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French. Remarque : Ce le contenu sous licence étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en francais. EXONERATION DE GARANTIE, Le contenu sous licence visé par une licence est offert « tel quel ». Toute utilisation de ce contenu sous licence est & votre seule risque et pérl. Microsoft n/accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection dues consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d'adéquation a un usage particulier et d'absence de contrefacon sont exclues. LIMITATION DES DOMMAGES-INTERETS ET EXCLUSION DE RESPONSABILITE POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement & hauteur de 5,00 § US. Vous ne pouvez prétendre & aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. Cette limitation concerne: ‘+ tout ce qui est relié au le contenu sous licence, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers; et. ‘+ les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d'une autre faute dans la limite autorisée par la loi en vigueur. Elle s‘applique également, méme si Microsoft connaissait ou devrait connaitre l'éventualité d'un tel dommage. Si votre pays n/autorise pas exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce scit, il se peut que la limitation ou lexclusion ci-dessus ne s'appliquera pas & votre égard. EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d'autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous conférent les lois de votre pays si celles-ci ne le permettent pas. Revised July 2013 204620: Adinsering isos SL Sere 2014 Databases Welcome! Thank you for taking our training! We've worked tagether with our Microsoft Certified Partners for Leamning Solutions and our Microsoft IT Academies to bring you a world-class leaening experience—whether you're a professional looking to advance your skills or a student preparing for a career in IT. 1 Microsoft Certified Trainers and Instructors—Your instructor is @ technical and instructional expert who meets ongoing certification requirements. And, if instructors are delivering training at one of our Certified Partners for Leatning Solutions, they are also evaluated throughout the year by students and by Microsoft. ' Certification Exam Benefits—After taining, consider taking a Microsoft Certification ‘exam. Microsoft Certifications validate your skills on Microsoft technologies and can help differentiate you when finding a job or boosting your career. In fact, independent research by IDC concluded that 75% of managers believe certifications are important to team performance! Ask your instructor about Microsoft Certification exam promotions and discounts that may be available ta you. = Customer Satisfaction Guarantee—Our Certified Partners for Learning Solutions offer a satisfaction guarantee and we hold them accountable for it At the end of clas, please ‘complete an evaluation of today’s experience. We value your feedback! ‘We wish you a greet learning experience and ongoing success in your career! Sincerely, Microsoft Learning ‘www microsoft.com/learning Microsoft | Learning “IDG, Vaieof Cetaton es Cetin and Organizational Paermance Nownber 2006 sil 20160, Adriniesing Mosc SOL Sever 201 Databases Acknowledgments Microsoft Learning would like to acknowledge and thank the following for their contribution towards developing this title. Their effort at various stages in the development has ensured that you have a good classroom experience. Design and Development ‘This course was designed and developed by Content Master, a division of CM Group Ltd. Content Master is a global provider of technical content and learning services. Lin Joyner ~ Lead Content Developer Lins an experienced SQL Server developer and administrator, having worked with SQL Server since ‘version 60, She designs and writes SQL Server and .NET development training materials. Prior to joining Content Master, Lin was a professional trainer for five years when she held the MCT and MCSD certifications. 204620: Adinsering isos SL Sere 2014 Databases it Contents Module 1: Introduction to SQL Server 2014 Database Administration Module Overview 1. Lesson 1: Database Administration Overview 12 Lesson 2: Introduction to the SQL Server Platform 1s Lesson 3: Database Management Tools and Techniques 112 Lab: Using SQL Server Administrative Tools 118 Module Review and Takeaways 1-23 Module 2: Installing and Configuring SQL Server 2014 Module Overview 2a Lesson 1: Planning SQL Server Installation 22 Lesson 2: Understanding Sets 241 Lesson 3: Post-Installation Configuration 2416 Labs Installing SQL Server 2014 2419 Module Review and Takeaways 222 Module 3: Working with Databases and Storage Module Overview Ba Lesson 2: Introduction to Data Storage with SQL Server 32 Lesson 2: Managing Storage for System Databases 38 Lesson 3: Managing Storage for User Databases 313 Lesson 4: Moving Database Files 3:23 Lesson 5: Configuring the Buffer Pool Extension 3:26 Lab: Managing Database Storage 3:30 Module Review and Takeaways 3.34 Module 4: Planning and Implementing a Backup Strategy Module Overview 41 Lesson 1: Understanding SQL Server Recovery Models 4-2 Lesson 2: Planning 2 Backup Strategy 49 Lesson 3: Backing up Databases and Transaction Logs 418 Lesson 4: Using Backup Options 4-28 Lesson 5: Ensuring Backup Reliab Lab: Backing Up Databases 439 Module Review and Takeaways 445 433 viv 204620: Admitting Microsoft® SQ Server® 204 Databases Module 5: Restoring SQL Server 2014 Databases Module Overview 54 Lesson 1: Understanding the Restore Process 52 Lesson 2: Restoring Databases 5-6 Lesson 3: Advanced Restore Scenarios 5-12 Lesson 4: Point-in-Time Recovery 5-19 Lab; Restoring SQL Server Databases 5-24 Module Review and Takeaways 5-28 Module 6: Importing and Exporting Data Module Overview 61 Lesson 1: Introduction to Transferring Data 6-2 Lesson 2: Importing and Exporting Data 69 Lesson 3: Copying or Moving a Database 618 Lab: Importing and Exporting Data 6-23 Module Review and Takeaways 6.27 Module 7: Monitoring SQL Server 2014 Module Overview ra Lesson 1: Introduction to Monitoring SQL Server, 72 Lesson 2: Dynamic Management Views and Functions rT Lesson 3: Performance Monitor Tad Lab: Monitoring SQL Server 2014 7:16 Module Review and Takeaways 719 Module 8: Tracing SQL Server Activity Module Overview a1 Lesson 1: Tracing SQL Server Workload Activity 82 Lesson 2: Using Traces 8-10 Lab; Tracing SQL Server Workload Activity 8-19 Module Review and Takeaways 8-23 204620: Adinsering isos SL Sere 2014 Databases Module 9: Managing SQL Server Security Module Overview oa Lesson 1: Introduction to SQL Server Security 92 Lesson 2: Managing Server-Level Security 9-20 Lesson 3: Managing Database-Level Principals 9-20 Lesson 4: Managing Database Permissions 9-30 Lab: Managing SQL Server Security 9-38 Module Review and Takeaways 9-46 Module 10: Auditing Data Access and Encrypting Data Module Overview 10-1 Lesson 1: Auditing Data Access in SQL Server 10-2 Lesson 2: Implementing SQL Server Audit 10-8 Lesson 3: Encrypting Databases 10-18 Lab: Auditing Data Access and Encrypting Data 10-25 Module Review and Takeaways 10-29 Module 11: Performing Ongoing Database Maintenance Module Overview wa Lesson 12: Ensuring Database Integrity 112 Lesson 2: Maintaining Indexes 117 Lesson 3: Automating Routine Database Maintenance 14s Lab: Performing Ongoing Database Maintenance 11.17 Module Review and Takeaways 11-20 Module 12: Automating SQL Server 2014 Management Module Overview wa Lesson 1: Automating SQL Server Management 122 Lesson 2: Implementing SQL Server Agent Jobs 12-6 Lesson 3: Managing SQL Server Agent Jobs 12.43 Lesson 4: Managing Job Step Security Contexts 12.417 Lesson 5: Managing Jobs on Multiple Servers 12:23 Lab: Automating SQL Server Management 12:28 Module Review and Takeaways 12-31 wi 204620: Admitting Microsoft® SQL Server® 24 Databases Module 13: Monitoring SQL Server 2014 with Notifications and Alerts Module Overview Ba Lesson 1: Monitoring SQL Server Errors 12 Lesson 2: Configuring Database Mail 137 Lesson 3: Configuring Operators, Notifications, and Alerts 3B.12 Lab: Using Notifications and Alerts 1319 Module Review and Takeaways 13-22 Appendix A: Troubleshooting Common Administrative Issues Module Overview wa Lesson 1: SQL Server Troubleshooting Methodology 142 Lesson 2: Resolving Service-related Issues 145 Lesson 3: Resolving Login and Connectivity Issues 148 Lab; Troubleshooting Common Issues wan Module Review and Takeaways 114 Appendix B: Installation Considerations Module Overview 15-1 Lesson 1: Overview of SQL Server Architecture 15-2 Lesson 2: Upgrading and Automating Installation 15-9 Module Review and Takeaways 15-13, Lab Answer Keys Module 2 Lab: Using SQL Server Administrative Tools tora Module 2 Lab: Installing SQL Server 2014 Lo2-a Module 3 Labs: Managing Database Storage Lo3-2 Module 4 Lab: Backing Up Databases Lo4-a Module 5 Lab: Restoring SQL Server Databases Los-1 Module 6 Lab: Importing and Exporting Data Lo6-1 Module 7 Lab: Monitoring SQL Server 2014 Lo7-1 Module 8 Lab: Tracing SOL Server Workload Activity Los-1 Module 9 Labs: Managing SOL Server Security Lo9-1 Module 10 Lab: Auciting Data Access and Encrypting Data L0-1 Module 11 Lab: Performing Ongoing Database Maintenance ua Module 12 Lab: Automating SQL Server Management 2a Module 13 Lab: Using Notifications and Alerts 32 ‘Appendix A Lab: Troubleshooting Common Issues ua. About Ths Couse About This Course This section provides you with a brief description of the course, audience, required prerequisites, and course objectives. Course Description This five-day instructor-led course provides students with the knowledge and sil to! maintain a Microsoft SQL Server 2014 database. The course focuses on teaching individuals how to use SQL Server 2014 product features and toois related to maintaining a database Audience ‘The primary audience for this course is individuals who administer and maintain SQL Server databases. ‘These individuals perform database administration and maintenance as their primary area of responsibility, or work in environments where databases play a key role in their primary job. ‘The secondary audience for this course is individuals who develop applications that deliver content from SQL Server databases. Student Prerequisites This course requires that you meet the following prerequisites: + Basic knowledge of the Microsoft Windows operating system and its core functionality. + Working knowledge of Transact-SQL + Working knowledge of relational databases. + Some experience with database design. Students who attend this training can meet the prerequisites by attending the following courses, or obtaining equivalent knowledge and stills: + 204610: Querying Microsoft SQL Server Abou This Course Course Objectives After completing this course, students will be able to: ‘+ Plan and install SQL Server 2014. + Configure SQL Server databases ‘+ Describe SQL Server recovery models + Backup databases. + Restore databases. ‘+ Import and export data. ‘+ Authenticate and authorize users. ‘+ Use server and database roles. ‘© Configure and assign permissions. ‘© Use encryption and auditing ‘+ Manage SQL Server Agent and jobs. + Configure security for SQL Server Agent. ‘+ Use PowerShell to manage SQL Server. ‘© Configure Database Mal, alerts and notifications. © Maintain databases. ‘+ Configure SQL Profiler and SQL Trace and use the Database Engine Tuning Advisor. '* Monitor data by using Dynamic Management Views. Course Outline This section provides an outline of the course: Module 1: Introduction to SQL Server 2014 Database Administration Module 2: Installing and Configuring SQL Server 2014 Module 3: Working with Databases and Storage Module 4: Planning and Implementing a Backup Strategy Module 5: Restoring SQL Server 2014 Databases Module 6: Importing and Exporting Data Module 7: Monitoring SQL Server 2014 Module 8: Tracing SQL Server Activity Module 8: Managing SQL Server Security Module 10: Auditing Data Access and Encrypting Data Module 11: Performing Ongoing Database Maintenance Module 12: Automating SQL Server 2014 Management About Ths Couse Module 13: Monitoring SQL Server 2014 by Using Alerts and Notifications ‘Appendix A: Troubleshooting Common Administrative Issues Appendix B: Installation Considerations Course Materials “The following materials are included with your kit + Course Handbook A succinct classroom leering guide that provides al the erica technical information in a crisp tightly-focused format, which is just right for an effective in-clas learning experience, ‘© Lessons: Guide you through the learning objectives and provide the key points that are critical to ‘the success of the in-class learning experience. © Labs: Provide a real-world, hands-on platform for you to apply the knowledge and skills leaned in the module. + Module Reviews and Takeaways: Provide improved on-the-job reference material to boost knowledge and skills retention. + Lab Answer Keys: Provide step-by-step lab solution guidance at your fingertips when it's needed ‘© Lessons: Include detailed information for each topic, expanding on the content in the Course Handbook. + Labs: Include complete lab exercise information and answer keys in digital form to use during lab time + Resources: Include well-categorized additional resources that give you immediate access to the most up-to-date premium content on TechNet, MSDN, Microsoft Press + Student Course Files: Include the Allies eve, a self-extracting executable file that contains all the files required for the labs and demonstrations + Course evaluation. At the end of the course, you will have the opportunity to complete an online evaluation to provide feedback on the course, training facility, and instructor. To provide additional comments or feedback on the course, send e-mail to support @mscourseware.com. To inquire about the Microsoft Certification Pragram, send e-mail to [email protected]. Abou This Course Virtual Machine Environment This section provides the information for setting up the classroom environment to support the business scenario of the course, Virtual Machine Configuration In this course, you wll use Microsoft Hyper-V to perform the labs The following table shows the role of each virtual machine used in this course: Virtual machine Role 20862C-MIA-DC Domain Controller 20462C-MIA-SQL SQL Server VIM Software Configuration The following sofware i installed on each VME ‘* SQL Server 2014 (on the SQL Server VM) Course Files There are files associated with the labs in this course. The lab files are located in the folder D\Labfiles on, the student computers. Classroom Setup Each classroom computer will have the same virtual machine configured in the same way. Course Hardware Level To ensure a satisfactory student experience, Microsoft Learning requires a minimum equipment configuration for trainer and student computers in all Microsoft Certified Partner for Learning Solutions (€PLS) classrooms in wich Official Microsoft Learning Product courses are taught. This course requires hrarcware level 6. Module 1 Introduction to SQL Server 2014 Database Administration a Lesson 1: Database Administration Overview 12 Lesson 2: Introduction to the SQL Server Platform 15 Lesson 3: Database Management Tools and Techniques 12 Lab: Using SQL Server Administrative Tools as Module Review and Takeaways 1:23 Module Overview This module introduces the Microsoft® SQL Server 2014 platform. It describes the components, editions, and versions of SQL Server 2014, and the tasks that a database administrator commonly performs for a SQL Server instance. Objectives ‘After completing this module, you will be able to: + Describe the SQL Server platform. + Describe common database administration tasks + Use SQL Server administration tools 1.2 inate to SU Senet 204 Database Aniston Lesson 1 Database Administration Overview Most organizations use software applications to manage business processes and activities, and these applications generally store data in a database, Organizations are increasingly reliant on applications and the data they store, and often databases are a “mission-critical” component of @ business's information technology (IT) infrastructure. The role of a database administrator (DBA) includes a wide range of responsibilities and tasks that ensure that the databases an organization relies on are maintained and kept at optimum efficiency. This lesson describes some of these responsibilities and tasks, which will be explored in greater detail throughout the rest of this course Lesson Objectives [Ater completing ths lesson, you will be able to: Describe common characteristics of a database administrator. * Describe common database administration tasks. Describe the importance of documentation in a database solution. What Makes a Good Database Administrator? ‘While this course is focused on performing database maintenance tasks for a SQL Server 2014 database, itis important to consider the important ocho tnnlege a eae characteristics of a successful DBA. While there are *mess swans many thousands of DBAs working successfully “Sym throughout the world, each with their own, experience and personality, some common factors that contribute to success include: + Technological knowledge and skills. A good DBA not only requires in-depth knowledge of the database platform used to host the database; but also needs to be familiar with host operating system configuration, storage devices, and networking. © Business-awareness, While 2 DBA is @ technical role, 2 good DBA typically understands the business context within which the database operates, and its role in supporting the business. + Organizational skills. Database systems can be complex, with a lot of components and subsystems ‘tormanage. Some tasks need to be performed at specific times, and a good DBA must keep track of these tasks while aso responding to unexpected issues as they arise. + Ability to prioritize. When unexpected problems affect a database, application users and business stakeholders typically make demands on the DBA to resolve the situation based on their individual requirements. A good DBA must prioritize the resolution of issues based on factors such as service- level agreements (SLAS) with the business for database services, the number of users and systems affected, and the degree to which the problems are affecting ongoing operations Aéninisesng Micosoh OL Serve Dabases 1-3 Common Database Administration Tasks Depending on the organization, a single DBA might be responsible for managing multiple database servers and databases, or multiple DBAs might each “triton aber sre ad take responsibility for a specific application, _ Maintaining database fils and objects database server, business unit, or geographic Sines corer teh location. importing and exporting ta “aang ct eta Regardless of how database management ‘Montoreg anvo.ehoatng responsibility is apportioned, common tasks that a \dembese systems DBA must perform include: + Provisioning database servers and databases. This can involve installing and configuring instances of SQL Server on physical or virtual servers, or creating new virtual machines based on template images. It can also involve creating databases and allocating their data and logfiles to sppropriate storage devices. + Maintaining database files and objects. After a database has been created and populated with data in tables and indexes, it requires ongoing maintenance to ensure it continues to perform ‘optimally. Tis involves reducing any fragmentation that occurs in data files as records are added and, deleted, ensuring that data files are kept at an appropriate size, and ensuring that the logical and physical data structures remain consistent. + Managing recovery in the event of database failure. Databases are often critica to business ‘operations, and a core responsibilty for a DBA isto plan an appropriate backup and recovery strategy for each database, ensure backups are performed, and restore the database in the event of afalure + Importing and exporting data, Data is often transferred between systems, so DBAS often need to extract data from, or import data to, databases * Applying security to data. An organization's database servers often contain its most valuable asset — the data that enables the business to operate. Security breaches can be costy, expensive and time- consuming to trace and repair; and damaging to customer trust and confidence. A DBA must implement security policies that enable users to access the data they need, while ensuring that the business meets its legal compliance obligations, protect its assets, and mitigates the risks associated with security breaches ‘+ Monitoring and troubleshooting database systems. Many database administration operations are reactive, in the sense that they involve taking action to troubleshoot and remediate a problem that has been identified. Successful DBAs also undertake a proactive approach, in which they monitor systems against an established baseline to try to detect potential problems before they impact data operations, 1.4 natu to SU Senet 204 Database Aniston Documen: 19 Database Management Procedures One of the key attributes ofa successful DBA is the ability to be organized. Most DBAs ae familiar with ewe eatin best? the systems they manage, and the tasks that must *Conigrton stings nd octons bbe performed on a day-to-day basis. However, even Sec pelmetrc pcies nachos the best DBAS do not rely purely on their memory. “Dna envy proces DBAs commonly compile and maintain documentation, often referred to asa "run book’, that includes information such as- + Configuration settings and file locations. * Personnel contact details, * Standard maintenance procedures and schedules. ‘© Disaster recovery procedures. While it may be unexciting, maintaining documentation for the database system is an important part of database administration, A detailed run book can be invaluable when a new DBA must take over responsibility for managing a database, or when an unexpected emergency occurs and the DBA is not present to deal with it. Even when the DBA is available to respond to a disaster such as the failure of a database server, having clearly documented steps to recover the database reduces the sense of panic and pressure, and enables a fester resolution of the problem. Check Your Knowledge Question Which of the following categories of information are useful to include book" to document the way your organization using SQL Server? Select the correct answer. Instance configuration settings Transaction log locations Contact details for responsible database administrators Nightly backup procedures All of the above options Adninisesng Moos SOL Sere Dabases 15 Lesson 2 Introduction to the SQL Server Platform ‘As a DBA, itis important to be familiar with the database management system used to store your data, SQL Server is a platform for developing business applications that are data focused. Rather than being a single monolithic application, SQL Server is structured as a series of components. Its important to Understand the use of each of these. ‘You can install more than one copy of SQL Server on a server. Each of these is called an instance and can be configured and managed independently SQL Server ships in a variety of editions, each with a different set of capabilities for different scenarios. Itis important to understand the target business cases for each of the SQL Server editions and how the evolution through a series of improving versions over many years results in today's stable and robust platform Lesson Objectives ‘After completing ths lesson, you will be able to: + Explain the role of each component that makes up the SQL Server platform, + Describe the functionality that SQL Server instances provide. + Explain the available SQL Server editions. + Explain how SQL Server has evolved 2.6 _Inatucton to SU Senet 204 Database Aniston SQL Server Components SQL Server is @ very good relational database engine, but it offers more than just that. Itisa complete data platform comprising of many -Notjusta database engine “Ralatonl and busines rteligence components components Coaelyre wayne Serer ues Component Description Database _The SQL Server database engine isthe heart of the SQL Server platform. It provides Engine a high-performance, scalable relational database engine based on the SQL language that can be used to host Online Transaction Processing (OLTP) databases for business applications and data warehouse solutions. SQL Server 2014 also includes @ memory-optimized database engine which uses in-memory technology to improve performance for short-running transactions, Analysis SQL Server Analysis Services (S5AS) is an online analytical processing (OLAP) engine Services that works with analytic cubes and tables. Its used to implement enterprise Bl solutions for data analysis and data mining. Integration SQL Server Integration Services (SSIS) is an extract, transform, and load (ETL) Services platform tool for orchestrating the movement of data in both directions between SQL Server components and external systems Reporting SQL Server Reporting Services (SSRS) is a reporting engine based on web services, Services providing a web portal and end-user reporting tools. It can be installed in native ‘mode, or integrated with Microsoft SharePoint Server. Master Data SQL Server Master Data Services (MDS) provides tooling and a hub for managing Services master or reference data Data Quality SQL Server Data Quality Services (0Q5) is a knowledge-driven data quality tool for Services data cleansing and matching. Streaminsight | SQL Server Streaminsight provides a platform for building applications that, perform complex event processing for streams of real-time data Full-Text Full-Text Search isa feature of the database engine that provides a sophisticated Search semantic search facility for text-based data Replication _The SQL Server database engine includes Replication, a set of technologies for synchronizing data between servers to meet data distribution needs. PowerPivat _ PowerPivot for SharePoint is a specialized implementation of SQL Server Analysis, for Services that can be installed in a Microsoft SharePoint Server farm to enable SharePoint tabular data modeling in shared Microsoft Excel workbooks Server PowerPivot is also available natively in Excel, Aéninisesng Micosob OL Serve Dabases 1-7 Component Description Power View Power View for SharePoint is a component of SQL Server Reporting Services when for installed in SharePoint-Integrated mode. It provides interactive data exploration, SharePoint visualization, and presentation experience that encourages intuitive, impromptu Server reporting, I Power View is also available natively in Excel | SQL Server Instances Itis sometimes useful to install more than one copy of a SQL Server component on a single server. Many SQL Server components can be installed more than once as separate instances. Many SOL Server components ar istance Instances enable lation of “hansen asec coguston SQL Server Instances “Nesom oe ‘The ability to install multiple instances of SQL Server, wo ypes ot nance: components on a single server is useful in a number Bema of situations = * You may want to have different administrators Cor security environments for sets of databases. You can manage and secure each instance of SQL Server separately. * Some of your applications may require server configurations that are inconsistent or incompatible with the server requirements of other applications. You can configure each instance of SQL Server independently + Your application databases might need different levels of service, particularly in relation to availabilty. You can use SQL Server instances to separate workloads with differing service level agreements (SLAS). * You might need to support different versions or editions of SQL Server. * Your applications might require different server-levelcollations. though each database can have different collations, an application might be dependent on the collation of the tempdb database when the application is using temporary objects Different versions of SQL. Server can also be installed side-by-side using multiple instances. Ths can assist ‘when testing upgrade scenarios or performing upgrades. Default and Named Instances Prior to SQL Server 2000, only a single copy of SQL Server could be installeé on a server system. SQL Server was addressed by the name ofthe Windows server on which i is hosted. To maintain backward compatibility, this mode of connection is still supported and is known as the default instance. In internal configuration tools, a default instanceof the database engine is named MSSQLSERVER. ‘Additional instances of SQL Server require an instance name that you can use in conjunction with the server name and are known as named instances. If you want all your instances to be named instances, you do nat need to install a default instance first. You cannot install all components of SQL Server in more than one instance. To access a named instance, client applications use the address Server-Name\Instance- Name, For example, a named instance called Test on a Windows server called APPSERVER1 would be addressed as APPSERVERI\Test. 1.8 inate to SOU Senet 204 Database Aniston ‘There is no need to install SQL Server tools and utilities more than once on a server, You can use single installation of the tools to manage and configure all instances. SQL Server Edi SQL Server is available in a wide variety of editions, with different price points and levels of capability ns SQL Server Editions Each SQL Server edition is targeted to a specific eee oe business use case, as shown in the table below: Edition Business Use Case Parallel Uses massively parallel processing (MPP) to execute queries against vast mounts of Data data quickly. Parallel Data Warehouse systems are sold as a complete ‘appliance’ Warehouse | rather than through standard software licenses Enterprise Provides the highest levels of reliability for demanding workloads. Business Adds Business Intelligence (Bl) to the offerings from Standard Edition, Intelligence Standard Delivers a reliable, complete data management platform, Express Provides a free edition for lightweight web and small server-based applications. Compact Provides a free edition for stand-alone and occasionally connected mobile applications, optimized for a very small memory footprint. Developer Allows building, testing, and demonstrating all SQL Server functionality. Web Provides a secure, cost effective, and scalable platform for public websites and applications. Microsoft Allows building and extending database applications on a cloud-based platform. ‘Aaure SQL Database Adninisesng Mcosob SOU Sere Dabases 1-9 SQL Server Versions SQL Server has been available for many years, yet it is rapidly evolving with new capabilities and features. tis a platform with a rich history of innovation achieved while maintaining strong levels of stability Early Versions ‘The earliest versions (1.0 and 1.1) were based on the 05/2 operating system. SQL Server 4.2 and later moved to the Microsoft Windows® operating system, initially on Windows NT. Subsequent Versions SQL Server 7.0 saw a significant rewrite of the product. Substantial advances were made in reducing the administration workload and OLAP Services (which later became Analysis Services) was introduced. SQL Server 2000 featured support for muitiple instances and collations. It also introduced support for data mining, After the product release, SQL Server Reporting Services (SSRS) was introduced as an add-on enhancement to the product, along with support for 64-bit processors SQL Server 2005 provided another significant rewrite of many aspects of the product. It introduced support for * Non-relational data stored and queried as XML. © SQLServer Management Studio (SSMS) was released to replace several previous administrative tools, «SSIS replaced a former tool known as Data Transformation Services (DTS) + Another key addition was the introduction of support for objects created using the Common Language Runtime (CLR). + The T-SQL language was substantially enhanced, including structured exception handling. ‘© Dynamic Management Views (OMVs) and Dynamic Management Functions (DMs) were introduced to enable detailed health monitoring, performance tuning, and troubleshooting, + Substantial high availability improvements were included in the product in particular, database mirroring was introduced + Support for column encryption was introduced. SQL Server 2008 also provided many enhancements: + Filestream support improved the handling of structured and semi-structured data + Spatial data types were introduced. + Database compression and encryption technologies were added. + Specialized date- and time-related data types were introduced, including support for time zones within datetime data + Full-text indexing was integrated directly within the database engine, (Previously full-text indexing was based on interfaces to operating system level services) + Appolicy-based management framework was introduced to assist with a move to more declarative- based management practices, rather than reactive practices 31.20 _rvoduton to SOL Sever 24 Database Administ + A Windows PowerShell® provider for SQL Server was introduced. The enhancements and additions to the product in SQL Server 2008 R2 included: ‘+ Substantial enhancements to SSRS. +The introduction of advanced analytic capabilities with PowerPivot + Improved multi-server management capabilities were added. ‘+ Support for managing reference data was provided with the introduction of Master Data Services. + Streaminsight provides the ability to query data that is arriving at high speed, before storing it in a database. © Date-tier applications assist with packaging database applications as part of application development projects. The enhancements and additions to the product in SQL Server 2012 included: ‘+ Further substantial enhancements to SSRS. ‘+ Substantial enhancements to SSIS. + The introduction of tabular data models into SQL Server Analysis Services (SSAS). ©The migration of Bl projects into Visual Studio 2010. ‘© The introduction of the AlwaysOn enhancements to SQL Server High Availabilty. The introduction of Data Quality Services. + Strong enhancements to the T-SQl language such as the addition of sequences, new error-hanaling ‘capabilities, and new window functions. ‘The introduction of the FileTable. ‘©The introduction of statistical semantic search. © Many general tooling improvements SQL Server 2014 SQL Server 2014 builds on the mission-critical capabilites of previous versions and provides even better performance, availability, scalability, and manageability. It provides new in-memory capabilities for OLTP and data warehousing, as well as new disaster recovery functionality through Microsoft Azure™. airstering Misa ® SOL Server® Databases 1-12 Check Your Knowledge Question ‘Which of the following functional requirements must be addressed by running more than one instance of SQL Server on a single physical server? Select the correct answer. You have one database that must be administered by a separate team of DBAs. Its important that the regular team of DBAs cannot access this separate database or assign permissions to it. You have one database that should only be used by Human Resources personnel Its important. that users from other departments have no access to the HR database. You want to create ten new databases. Your existing SQL server instance already hosts five databases. Your hardware team has installed a second multi-core processor in the host server. Your company is expanding and you expect to have to support 2000 new users in the next three months. 2.32 nvoduton to SOL Sever 24 Database Administ Lesson 3 Database Management Tools and Techniques ‘A.DBA for a SQL Server database has a range of tools for managing different aspects of the database solution at their disposal. Is important to be familiar with the available tools, and the techniques you can Use within them to manage @ SQL Server database. Lesson Objectives After completing this lesson, you will beable to: * Describe commen tools for managing a SQL Server database system. + Use SQL Server Management Studio to manage a database server and databases + Run Transact-SQL statements to perform maintenance tasks. # Use the SQLCMD command line utility. * Use Windows Powershell with SQL Server. SQL Server Tools SQL Server provides multiple tools that you can use to manage various aspects of the database system. fea sore vragen St 6) ‘These tools include: * Sat Serr Coniguration Manager SCM * Sat Proter + SQL Server Management Studio (SSMS). This * Sak Serr Oxtabae gn Turing Aber on is the primary database management tool for str erortnoc and Boe SQL Server database servers. It provides a “eelamd uty ‘graphical user interface (GUI) and 2 Transact- tebe wy '8QL scripting interface for managing the database engine component and databases. Additionally, you can use SSMS to manage instances of SSAS, SSIS, and SSRS. ‘SQL Server Configuration Manager (SSM). You can use SCM to configure and control SQL Server services, and to manage server and client network protocols and aliases. + SQL Profiler. When you need to examine activity in a SOL Server database or SSAS data model, you «an use SQL profiler to record a trace that can be viewed or replayed. This enables you to troubleshoot problems or optimize database configuration based on actual usage patterns, Note that this tool is deprecated for database engine workloads, and is replaced by extended events. + SQL Server Database Engine Tuning Advisor (DTA). A properly optimized database uses indexes and other structures to improve query performance, The DTA provides schema recommendations based on analysis of representative workloads, and can provide a useful starting point for database optimization. + SQL Server Import and Export This too! isa graphical wizard that simplifies the process of transferring data in or out of a SQL Server database. +The sqlemd utility. Pronounced "SQL Command’, this is @ command line tool that you can use to connect to a SQL Server instance and run Transact-SQL statements or scripts. Aéiristering Misasot® SOL Server® Duabases_1-13 + The bep utility. BCP stands for Bulk Copy Program, and the bep utility is a command line tool for importing and exporting data to and from SQL Server. ‘Additionally, SQL Server includes configuration and management tools for specific components such as Analysis Services, Reporting Services, Data Quality Services, and Master Data Services. You can also install SQL Server Data Tools (SSDT) and SQL Server Data Tools for Business Intelligence (SSDT-BI) add-ins in Microsoft Visual Studio, and use them to develop database and business intelligence (Bl) solutions based on SQL Server components. SQL Server Management Studio SSMS is the primary tool for managing SQL Server databases. Its based on the Visual Studio shell used for software development projects, and supports the following features: * Object Explorer. This is @ pane in which you can connect to SQL Server instances and ‘manage the objects they contain. By default, when you open SSMS you are prompted to connect to a SQL Server instance, and this instance is displayed in Object Explorer. You can then connect to additional instances and view them concurrently + Code Editor. You can manage database servers and objects using graphical interfaces (typically ‘opened from Object Explorer), or you can enter and run Transact-SQL statements in the code editor ppane, Using Transact-SQL code to perform management tasks enables you to save the commands as scripts, which can be re-executed at a later time or scheduled to run automatically. The code editor in ‘SSMS supports intlliSense, which provides auto-completion of statements and color-coding of keywords to improve script readability. You can also use snippets to simplify the creation of commoniy used statements. SSMS also provides the ability to generate Transact-SQL code for most tasks that can be performed using graphical tools, making it easier to create reusable scripts for administrative tasks. + Solutions and Projects. You can use projects and solutions to keep related scripts, connections, and other documents together. This can make it easier to keep track ofall the script files required to create and manage a database solution. # Reports. SSMS includes an extensible report interface that you can use to view detailed configuration and status information about SQL Server instances, databases, and other objects. 1.24 rroduton to SOL Sever 21 Database Administ The sqlcmd Utility The sqlemd utility is a command line tool thet you can use to nun Transact-SQL statements or scripts in SQL Server instance. You can use sqlemd to ‘automate database tasks from the command line, and for to perform configuration and management tasks when SSMS is not available. In particular, you can use sqlemd to open a dedicated administrator connection (DAC) to a server when standard connections are not possible. Parameters The sqlemd utility provides parameters that you can use to configure connections and perform tasks. These parameters include: -S server name (connect to the specified server) -d database_name (connect to the specified database) U login (login asthe specified login) -P password (authenticate the login withthe specified password) -E (use a trusted connection for Windows authentication) A (open a dedicated administrator connection) -i input file (tun the Transact-SQL code in the specified input file) 0 output file (save the output in the specified output file) -q "Transact-SQL query’ (run the specified query) -Q "Transact-SQL query" (un the specified query and exit) -vvar = "value" (pass the specified variable to the input script) The sqlcmd utility supports many more parameters. For 2 full lst, enter sqlemd -? At the command line. Using Transact-SQL to Perform Management Tasks You can perform most administrative tasks in SSMS by using the graphical user interface. However, “net 00 semen some tasks can only be performed by using veer me enna Transact-SQL statements; and even ifa task can be tym sed poocons od tons performed in a graphical interface, itis often ‘ein in mee sensible to use Transact-SQL code that can be saved oe as a script and re-executed later or run +08¢€ commande automatically by a scheduled job se Note: Most of the graphical interfaces in SSMS provide a Seript button that generates the equivalent Transact-SQL code to apply the options you have chosen in the Ul Aairstering Misasot® SOL Server® Daabases_1-15 ‘Transact-SQL commands that you can use to perform management tasks include: + Explicit data definition language (DDL) statements. For exemple, you can use the Transact-SQL CREATE DATABASE statement to create a database, and the corresponding DROP DATABASE statement to delete a database, + System stored procedures and functions. SQL Server provides system stored procedures and functions that encapsulate common system configuration and management tasks, For example, you Can use the sp_configure system stored procedure to set SQL Server instance configuration settings + DBCC (Database Console Commands). DBCC commands are used to perform specific configuration and maintenance tasks, and to perform verification checks in 2 SQL Server database. For example, you can use the D8CC CHECKDB command to verify the logical and physical integrity of the abjects in a database, Using Windows PowerShell to Manage SQL Server ‘Windows PowerShell is a command-line shell and scripting language designed for system administrators Itcan be used to administer Windows, Microsoft server products, Microsoft Azure services, and non- Microsoft products, such as UNIK. Ths gives administrators a common scripting language across servers and other devices. Windows PowerShell Cmdlets and Modules In traditional shells, commands take the form of executable programs that range from the very simple (such as attrib.exe) to the very complex (such as netsh.exe). In contrast, Windows PowerShell cmelets are very simple, object-based, single-function command-line tools built into the shell. You can use each cmdlet separately, and also combine them to perform complex tasks. Cmdlets have a recognizable name format—a verb and noun separated by a dash (-), such as Get-Help, Get-Process, and Start-Service. The verb defines the action that the midlet performs for example, "get midlets retrieve data, "set" cmdlets establish or change data, format" cmdlets format data, and “out” midlets direct the output to a specified destination. The noun specifies the object being acted upon: for example, Get-Service retrieves information about services. CCmdlets are packaged in modules, which can be installed on a computer and loaded into the PowerShell environment as required. You can use the Get-Module cmdlet to list available modules on a computer, and you can use Import-Module to load the modules you need. When you install SQL Server 2014 on a computer, the installation includes the SQLPS module, which includes emdlets that you can use to manage SQL Server instances and objects. 1.36 _rvoduton to SOL Sever 214 Database Administ Using SQLPS Module Cmdlets The SQLPS module includes: + ASQL Server provider. This enables a simple navigation mechanism similar to file system paths. You ‘an navigate and build paths similar to file system paths, where the drive is associated with a SQL Server management object model, and the nodes are based on the object model classes, You can. then use PowerShell cmadlets such as Get-ChildItem to retrieve objects in the SQL Server object model. You can also use commands such as ed and dir, to navigate the paths, similar to the way you navigate folders in a command prompt window. + Aset of SQL Server emdlets, The SQL Server cmdlets support actions such as running Transact-SQL statements with the Invoke-Sqlemd cmdlet. You can use the SQL Server 2014 Windows PowerShell components to manage instances of SQL Server 2000 or later. Instances of SQL Server 2005 must be running $P2 or later. Instances of SQL Server 2000 ‘must be running SP4 or later. When the SQL Server 2014 Windows PowerShell components are used with earlier versions of SQL Server, they are limited to the functionality available in those versions. PowerShell Interfaces You can use the Windows PowerShell to manage SQL Server in the following user interfaces: + The Windows PowerShell command prompt. This provides a console window in which you can run PowerShell cmalets. ‘+ The Windows PowerShell interactive scripting environment (ISE). This provides a PowerShell script development environment that supports InteliSense and other features to simplify script development. + SQL Server PowerShell. SOL Server includes a PowerShell console named SQLPS.exe in wich the SQLPS module is pre-loaded. You can open this console from within SQL Server Management Studio and use it to run cmadlets interactively. Categorize Activity Categorize each item into the appropriate category. Indicate your answer by writing the category number to the right of each item, [oes | 1 sled 2 The SQLPS module 3. | The Window PowerShell SE 4 | SQLServer Configuration Manager 5 SQL Server Import and Export 6 SQLServer Management Studio 7 Bulk Copy Program airistering Miss ® SOL Server® Daabases_1-17 cee Category 2 Command Graphical Line Tools ‘User Interface Tools 1.38 _rroduton SOL Sever 21 Database Administ Lab: Using SQL Server Administrative Tools Scenario Asa new database administrator at Adventure Works Cycles, you plan to familiarize yourself with the SQL Server instance and tools that you will use to manage databases. Objectives After completing this ab, you will be able to: + Use SQL Server Management Stucio. + Use the sqlemd utility. # Use Windows PowerShell with SQL Server. Estimated Time: 45 Minutes Virtual machine: 20462C-MIA-SQL User namme: ADVENTUREWORKS\Student Password: PaSSwOrd Exercise 1: Using SQL Server Management Studio Scenario The DBAs at Adventure Works Cycles use SQL Server Management Studio as the primary administrative tool for SQL Server databases. You therefore want to familiarize yourself with it ‘The main tasks for this exercise are as follows: 1 Prepare the Lab Environment 2. Use Object Explorer in SQL. Server Management Studio 3. Create a Database 4. Runa Transact-SQL Query 5. Create a Project D> Task 1: Prepare the Lab Environment 1L._Ensure that the 20462C -MIA-DC and 20462C -MIA-SQL virtual machines are both running, and then log on to 20462C -MIA-SQL as ADVENTUREWORKS\Student with the password PaSSwOrd 2. Run Setup.emd in the D:\Labfiles\LabO1\starter folder as Administrator. > Task 2: Use Object Explorer in SQL Server Management Studio 1L._ Start SQL Server Management Studio and connect to the MIA-SQL database engine using Windows authentication, 2. Ensure that Object Explorer is visible, and expand the Databases folder to view the databases that are hosted on the MIA-SQL instance, 3. View the Server Dashboard standard report for the MIA-SQL instance. airstering Miss SOL Server® Databases 1-19 > Task 3: Create a Database 1. Under MIA-SQL right-click the Databases folder, and click New Database. Then create a new database named AWDatabase with the default settings. 2. View the databases listed under the Database folder and verify that the new database has been created > Task 4: Run a Transact-SQL Query 1. In SQL Server Management Studio, create a new query, and execute the following Transact-SQL code: EXEC spLhelpdb AWDatabase; 2. View the query results, noting that they include information about the AWDatabase you created in the previous task. 3. Save the script file as GetDBInfo.sql in the D:\Labfiles\LabO1\starter folder. > Task 5: Create a Project 1. In SQLServer Management Studio, create a new project named AWProject in the D:Labfiles\LabOn\starter folder. 2. Ensure that Solution Explorer is visible, and add a new connection to the project. The new connection should be to the MIA-SQL database engine instance and it should use Windows authentication. 3. Add a new query to the project, and change its name to BackupDB.sql. 4. In Object Explorer, right-click the AWDatabase database you created previously, point to Tasks, and click Back Up. 5. In the Back Up Database - AWDatabase dialog box. in the Seript drop-down lst, select Seript Action to Clipboard. Then cancel the backup operation. 6. Paste the contents of the clipboard into the empty BackupDB.sq] script. 7. Edit the BackupDB.sq] script to change the backup location to Labfiles\Lab01\Starter\AWDatabase bak. 8. Save all ofthe files in the solution, and then close the solution and minimize SQL Server Management Studio. Results: At the end of this exercise, you will have created a SQL Server Management Studio project containing script files. Exercise 2: Using the sqlcmd Utility Scenario DBAs at Adventure Works Cycles accasionally use sqlcmd to connect to SQL Server and perform ‘maintenance tasks. You therefore want to familiarize yourself with sqlemeé. ‘The main tasks for this exercise are as follows: 1. Use sqlemd interactively 2. Use sqlemd to Run a Script 31.20 _nroduson to SOL Sever 21 Database Administ > Task 1: Use sqlemd interactively 1. pena command prompt, and enter the following command to view details of all sqlemd parameters: salend -? Enter the following command to start sqlcmd and connect to MIA-SQL using Windows authentication: sqlond -S MIA-SOL -E 3. Inthe sqlemd command line, enter the following commands to view the databases on MIA-SQL. Verify that these include the AWDatabase database you created in the previous exercise: SELECT name FROM sys.sysdatabases; © 4. Enter the following command to exit sqlema: exit > Task 2: Use sqlcmd to Run a Script 1 Inthe command prompt window, enter the following command to use sqlemd to run the GetDBinfo.sql script you crested earlier in MIA-SQL: sqlend -S MIA-SQL -E -7 D:\LabfiTes\Labo1\starter\GetDBinfo. sq] Note that the query results are returned, but they are difficult to read in the command prompt 2. Enter the following command to store the query output ina text file: salomd -S MIA-SQL. -E -i D:\LabfiTes\Labo1\starter\GetD8info. sal -o D:\Labfiles\Labo2\starter\pBinfo. txt 3.__Use Notepad to view the contents of the D:\Labfiles\Lab01\Starter\DBinfo.tt file. Results: At the end of this exercise, you will have used sqlcmd to manage a database, Exercise 3: Using Windows PowerShell with SQL Server Scenario IT administrators at Adventure Works use Windows PowerShell to script configuration tasks across a range of services. You want to investigate how to use Windows PowerShell with SQL Server. The main tasks for this exercise are as follows: 1. Use Windows PowerShell 2, Using PowerShell in SQL Server Management Studio 3. Create a PowerShell Script airstering Miss ® SOL Server® Dtabises_1-21 > Task 1: Use Windows PowerShell 1. On the taskbar, click the Windows PowerShell icon. 2. Atthe Windows PowerShell prompt, enter the following command: cet-Process 3. Review the list of services. In the ProcessName column, note the SQL services, Then enter the following command to list only the services with names beginning “SQL' Gat-Process SaL* 4, To find a way to sort the list enter the following command: Get-Help Sort 5. Review the help information, then enter the following command Get-Process S0L* | Sort-Object Handles 6. Verify that thelist is now sorted by number of handles, and close Windows Powershell > Task 2: Using PowerShell in SQL Server Management Studio 1. In SQL Server Management Studio, in Object Explorer, right-click MIA-SQL, and then click Start PowerShell 2. Enter the following command to show which modules are loaded, and verify that they include SQLPS and SQLASCMDLETS: cet-Modu Enter the following command to set the current location to the MIA-SQL server: Set-Tocation SQLServer:\SQL\MIA-SQL. 4. Use the following command to display the SQL Server database engine instances on the server: 5. Use the Set-Location cmidlet to change the current location to SQLServer:\SQL\MIA- SQL\DEFAULT\Databases. 6. Use the Get-Childitem cmdlet to display the databases on the default instance. 7. Use the following command to execute a Transact-SQL statement that retrieves the server version: Invoke-Sqlend “SELECT @aversion”™ 8. Close the SOL Server PowerShell window and close SQL Server Management Studio without saving any files 31.22_nroduton to SOL Sever 21 Database Administ > Task 3: Create a PowerShell Script On the task bar, right-click the Windows PowerShell icon and click Windows PowerShell ISE. 2. In the PowerShell command prompt, enter the following command to verify that the SQLPS module isnot loaded: Get-Module Use the following command to load the SQLPS module, and then use the Get-Module cmdlet to verify that it has been loaded: Import-Module SQLPS -DisableNamechecking 4, Ifthe Commands pane is not visible, on the View menu, click Show Command Add-on. Then in the ‘Commands pane, in the Modules list select SQLPS and view the cmdlets in the module, noting that they include cmdlets to perforrn tasks such as backing up databases and starting SQL Server instances. 5. If the Script pane is not visible, click the Seript drop-down arrow. Then, in the Script pane, type the following commands. (Hint: Use the Intellisense feature.) Imort-Nodule SOLPS -DisableNanechecking Set-location SQLServer: \SOL\MIA-SQL \Defau t\Databases Get-childitem | Select Name, Size, Spacedvailable, IndexspaceUsage | out-cridview 6. Click Run Seript. Then view the results in the window that is opened. (The script may take a few minutes to run.) 7. Close the output window, and modify the script as shown in the following example: Imort-Nodule SOLPS -DisableNanechecking Set-Tocation SQLServer: \SOL\MIA-SOL\DefauTt\Databases Get-Chi lditem | Select Name, Size, SpaceAvailable, IndexSpaceUsage | Out-File "DA\Labfiles\LabO1\Starter\Databases.txt’ Save the script as GetDatabases.ps1 in the D:\Labfiles\Lab01\starter folder. Then close the PowerShell ISE. 9. In the DA Labfiles\LabO1\Starter folder, right-click GetDatabases.ps2 and click Run with PowerShell. 10. When the script has completed, open Databases.txt in Notepad to view the results. Then close Notepad. Results: At the end ofthis task, you will have ¢ PowerShell script that retrieves information about databases from SQL Server. éirstering Miss SOL Server® Databases 1-23 Module Review and Takeaways This module introduced SQL Server 2014 and the tools that are commonly used to manage it. The rest of this course focuses on how to perform specific database management operations in a SQL Server database engine instance. Review Question(s) Question: When might you use each of the management tools you explored in the lab? Module 2 ig and Configuring SQL Server 2014 Module Overview 24 Lesson 1: Planning SQL Server Installation 22 Lesson 2: Installing SQL Server 2014 241 Lesson 3: Post-Installation Configuration 246 Lab: Installing SQL Server 2014 219 Module Review and Takeaways 222 Module Overview One of the key responsibilities of a database administrator (DBA) is to provision databases servers and. databases. Ths includes planning and performing the installation of SQL Server on physical servers and virtual machines, This module explains how to assess resource requirements for SQL Server 2014 and how to instal it Objectives ‘After completing this module, you will be able to: + Plan a SQL Server 2014 installation + Install SQL Server 2014, + Perform post-installation configuration tasks 2.2 _Insaling and Configing SOU Serer 24 Lesson 1 Planning SQL Server Installation Before starting the installation process for SQL Server, itis important to discover how each of the requirements fora successful installation can be met. In ths lesson, you will consider the specific requirements that SQL Server places on the hardware and software platforms on which it runs and learn about tools wihich you can use to pre-test your systems before installing SQL Server. Lesson Objectives After completing this lesson, you will beable to: * Describe considerations for installing SQL Server. * Describe the hardware and software requirements for SQL Server 2014 + Assess CPU and memory requirements for SQL Server. + Describe considerations for storage 1/0 and performance requirements for SQL. Server. Plan service accounts for SQL Server services. Considerations for SQL Server Installation ‘When planning an installation of SQL Server, consider the following factors: “eau componans on ees + Required components and features. One of Seven aiee atta the most obvious factors to consider is which “lot data elon SQL Server components and features do you need to install to meet your business requirements. While it may be tempting to instal all available components just in case they are required, you should limit the installation to include only the components that are actually needed. This approach helps to minimize the “surface attack area’, reducing the opportunity for security vulnerabilities. It also minimizes the resource utilization ovethead of the installation and, simplifies administration by eliminating services and components that would otherwise need to be managed + Hardware resource requirements. Depending on the components being installed and the workloads they must support, SQL Server can place substantial demands cn the hardware resources cof a server. A typical SQL. Server database engine installation consumes CPU, memory, and storage 1/0 subsystem resources to meet the requirements of the applications using the database. Inthe case ‘of most enterprise database solutions the server (physical or virtual is often dedicated to support the SQL Server installation. However, in some small organizations or departmental solutions, the database engine may need to co-exist with other applications and software services on the same server, and compete for harcare resources. When planning an installation, you must be sure that the server wihere you intend to install SQL Server has sufficient spare capacity to support the database workload vile providing the required levels of performance and concurrency. Adninisesng Micosob OL Serve Dabases_2-3 + Service account identities. Each SQL Server service is configured to run within the context of a specific Windows account. This account provides an identity forthe service, and is used to authorize access to system resources by the service. You should plan the accounts that will be used by the services in your SQL Server installation carefully to ensure that they meet the requirements of the “principle of least privilege", which states that all authenticated accounts should have the minimum permissions and system rights they need to fulfil their function, + Default data file locations. The SOL Server database engine is used to store and manage data in databases, and these databases exist as files on storage devices. While you can specify the location of data files when you create a database, SQL Server uses a default location for internal system databases and new databases with no fle location specified. You should set the default location to a folder on an appropriate storage device when you install SQL Server. + Server collation. SQL Server databases use a spectied collation to control how character data is sorted and stored. You specify a collation at the server (instance) level and unless you have specific character sort-order requirements, you should choose a collation that matches that used by the server Con which you are installing SQL Server. You can override the server collation in individual databases if required, but the server collation is used for system databases including TempDB, which is used by all databases to store temporary objects. Minimum Hardware and Software Requirements SQL Server 2014 has specific hardware and software requirements. Hardware requirements Hardware Requirements *Softuare requirements In earlier versions of SQL Server, it was necessary to ‘ceo focus on minimum requirements for processor, disk Configuration. You must configure component-specifc settings for each component that you have selected to install. Ready to Install. Use this page to review the options you have selected throughout the wizard prior to performing the installation. © Complete. When the installation is complete, you are likely to need to reboot the server. Performing an Unattended Installation In many organizations, script fis for standard bulls of software installations are crested by senior a IT administrators and used to ensure consistency a ‘throughout the organization, Unattended ERR eee installations can help with the deployment of —— multiple identical installations of SQL Server across “Upgrade SQL Server from the command Ke an enterprise. Unattended installations can also "Bieeacrtaegartnener eat, provide for the delegation of the installation to eee eee ees eects another person. iain Unattended Installation Methods (One option for performing an unattended installation of SQL Server isto create an .ini file containing the required setup information and passing it as a parameter to setup.exe at a command prompt. A second alternative isto pass all the required SQL Server setup details as parameters to the setup.exe program, rather than placing the parameters into an ni file. In both examples on the slide, the second method has been used, The first example shows a typical installation command and the second shows how an upgrade could be performed using the same method. 1q Switch ‘The "fa switch shown in the examples specifies “quiet mode" ~ no user interface is provided. An alternative switch "/qs" specifies “quiet simple” mode. In the quiet simple mode, the instalation runs and shows progress in the Ul but does not accept any input. Creating an ini File ‘An Jini file for unattended installation can be created by using any text editor, such as Notepad. The SQL Server instalation program creates a fle called ConfigurationFile ini in a folder that is named based upon the installation date and time, under the folder C\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log. You can use this as a starting point for creating your own .ni file. The Jn file is composed of a single [Options] section containing multiple parameters, each relating to a different feature or configuration setting 2.24 _tntaling and Congo SU Serer 2016 Upgrading SQL Server I you have an existing instance of a previous version of SQL Server, you can upgrade it to SQL Server 2014. There are two basic ways that SQL Sr enor Server uparades can be performed ~ there is no Sse ce sion single preferred way to do this. Each method has Nesanontnecnee Tite ees benefits and limitations, and is sppropriate in remsoriptoe rane SRom certain circumstances. mune Varad Air blo nin pace eonce In-place Upgrades In-place upgrades occur when the installed version of SQL Server is directly replaced by a new version by the SQL Server setup program. This is an easier and highly automated, though riskier, method of Upgrading. If an upgrade fails, it is much harder to return to the previous operating state. For most customers, the risk of this cannot be ignored When you are weighing up risk. you need to consider that it may not be the SQL Server upgrade that fails. Even ifthe SQL Server upgrade works as expected, but then the application fails to operate as anticipated (on the new version of SQL Server, the need to recover the situation quickly wil be ust as important, In-place upgrades have the added advantage of minimizing the need for additional hardware resources and avoid the need to redirect client applications that are configured to work with the existing server. Before performing an in-place upgrade, you should use the Upgrade Advisor tool to analyze existing instances and identify any issues that need to be addressed before upgrading. You can install the Upgrade ‘Advisor from the Planning page of the SQL Server 2014 Installation Center. Side-by-side Upgrades Side-by-side upgrades are a safer alternative, as the original system is left in place and can be quickly returned to production should an upgrade issue arise. However, side-by-side upgrades involve extra work and more hardware resources. To perform a side-by-side upgrade, you will need enough hardware resources to provide for bath the original and the new systems. Two common risks associated with side-by-side upgrades relate to the time taken to copy all the user databases to a new location and the space required to hold these copies, ‘While most side-by-side upgrades are performed on separate servers itis possible to install both versions of SQL Server on the same server during a side-by-side upgrade. However, side-by-side upgrades of versions with the same major build number (that is, SQL Server 2008 R2 and SQL Server 2008) on the same server are a special case. Because the major version number is identical, separate versions of the shared components cannot co-exist on the same server. Shared components will be upgraded, Not all versions of SQL Server are supported when installed side-by-side, Consult SQL Server Books Online for a matrix of versions that are supported when installed together. Hybrid Options Its also possible to use some elements of an in-place upgrade and a side-by-side upgrade together. For example, rather than copying all the user databates after installing the new version of SQL Server beside the old version, and migrating all the server objects such as logins, you could detach user databases from the old server instance and reattach them to the new one. ainstering Miss SOL Server® Duabases_2-15 (Once user databases have been attached to a newer version of SQL Server, they cannot be reattached to an older version again, even ifthe database compatibility settings have not been upgraded. This i a risk that needs to be considered when using a hybrid approach. Sequencing Activity Put the following pages in the order they appear in the SQL Server installation wizard by numbering each to indicate the correct order. Steps Install Rules Product Updates Instance Configuration Feature Selection Product Key Server Configuration Setup Role 2.16_trtaling and Congo SU Serer 2086 Lesson 3 Post-Installation Configuration When you have completed the installation of SQL Server, you can perform post-installation checks and, configuration tasks to meet your specific requirements Lesson Objectives [Ater completing ths lesson, you will be able to: + Perform postinsalaton checks. + Configure SOL Server services and network protocols © Manage SQL Server updates. Performing Post-Installation Checks After SQL Server has been installed, the most Important check is to make sure that all SQL Server ery tat SL Seve services are runing services are running, by using the SQL Server sitneessary view ag fe inermsion st ‘ ‘WProgamfisi¥seroso SCk Services node in SSCM. Seren TOSetop Boost apg (Note: SQL Server services have names that differ slightly to ther displayed names, For example, the service name forthe default SQL Server service is MSSQLSERVER. You can view the actual service name by looking on the properties page for the You do not need to check the contents ofthe SQL Server setup log files after installation, because the installer program will indicate any errors that occur and attempt to reverse any of the SQL Server setup, that has been completed to that point. When errors occur during the SQL Server Setup phase, the installation of the SQL Server Native Access Client and the Setup Components is not reversed. Typically, you only need to view the setup log files in two scenarios: + If setup is failing and the error information displayed by the installer does not help you to resolve the issue. + Ifyou contact Microsoft Product Support and they ask for detailed information. I you do require the log files, you will find them in the %programfiles%\Microsoft SQL Server\110\Setup Bootstrap\Lag folder. airistering isos SOL Server® Duabases_2-17 Configuring Services and Network Protocols You use SOL Server Configuration Manager (SSCM) to configure SQL Server services, and the network Use Sa Sever Coniuratin Manager 6 libraries exposed by SQL Server services, as well as, *Confgure sevice aie wih SOL Serve *Contgure network to's od ports exposed configuring how client connections are made to ty SdeSever pene SQL Server, Confgure networ protocols ports nd alases {ord and 64 chet apleaions Configuring Services You can use SSCM to control (that is, star, stop, and configure) each service independently, to set the startup mode (automatic, manual, or disabled) of each service, and to set the service account identity for each service You can also set startup parameters to start SQL Server services with specific configuration settings ‘troubleshooting purposes. You also use SSCM to configure both server and client protacols and ports. SSCM provides two sets of network configurations—protocols that the server exposes and those used for making connections. Configuring Server Network Ports and Listeners You can configure each network endpoint that an instance of SQL. Server exposes. This includes the determination of which network libraries are enabled and, for each one, the configuration ofthe network library. Typically, this will involve settings such as protocol port numbers. You should discuss the required network protocol configuration of SQLServer with your network administrator. There are three protacals available: © ToPAP + Named pipes * Shared memory The configuration forthe TCP/IP protocol allows for different setings on each configured IP address if required, or a general set of configurations that are applied to all P addresses. Configuring Client Network Ports and Listeners ‘SQL Native Client (SNAC) is installed on the server as well as on client systems. When SQL Server management tools ae installed on the server, they the SNAC library to make connections to the SQL Server services that are on the same system, Every computer that has SNAC installed needs the ability to configure how that library will access SOL Server services. For ths reason, in addltion to server network configuration settings, SSCM includes client configuration nodes with which you can configure how client connections are made. Note that two sets of client canfigurations are provided and that they only apply to the computer where they are configured. One set is used for 32-bit applications; the other set is used for 64-bit applications. SSMS is a 32-bit application, even when SQL Server is installed as a 64-bit application, Aliases Connecting to a SQL Server service can involve multiple settings such as server address, protacal, and port. If you hard-code these connection details in your client applications, and then any of the details change, your application will no longer work, To avoid this issue and to make the connection process simpler, you can use SSCM to create aliases for server connections. 2.18 naling and Congo SU Server 2086 You create a server alias and associate it with a server, protocol, and port if required). Client applications can then connect to the alias without being concerned about how those connections are made. Each client system that utilizes SNAC (including the server itsef) can have ane or more aliases configured Aliases for 32-bit applications are configured independently af those for 64-bit applications. Managing SQL Server Updates As with all software products over time, issues can be encountered with SQL Server. The product “50. arr ois are ise group is very responsive in fing any identified onde ees issues by releasing software updates tee cece meiner SOL Server updates are released in several ways retepas tne pl ead ed Siete sapere + Hotfixes (also known as QFE or Quick Fix Engineering) are released to address urgent customer concerns, Due to the tight time constraints, only limited testing can be performed on these fixes, so they should only be applied to systems that are known to be ‘experiencing the issues that they address. + Cumulative Updates (CUs) are periodic rol-up releases of hotfixes that have received further testing asa group. + Service Packs (SPs) are periodic releases where ful regression testing has been performed. Microsoft recommend applying SPs to al systems after appropriate levels of organizational testing The simplest way to keep SQL Server up to date is to enable automatic updates from the Microsoft Update service. Larger organizations or those with strong change processes should exert caution in applying automatic updates. Itis likely that the updates should be applied to test or staging environments before being applied to production environments SQL Server 2014 can also have product SPs slipstreamed into the installation process to avoid the need to apply them after installation. Question: What are the three network protocols for which you can configure network. ‘endpoints in SQL Server 2014? airstering isos SOL Server® Databases 2-19 Lab: Installing SQL Server 2014 Scenario ‘You have been tasked with creating a new instance of SQL Server that will be used by the IT department a5. test server for new applications. Objectives ‘After completing this lab, you will be able to: + Assess available resources. + Install SQL Server 2014. + Perform post-insallation checks. Estimated Time: 60 minutes Virtual machine: 20462¢-MIA-SQL User name: ADVENTUREWORKS\Student Password: PaS$wOrd Exercise 1: Preparing to Install SQL Server Scenario ‘You are preparing to install SQL Server 2014 forthe IT department in Adventure Works Cycles. Before installing, you want to determine the readiness of the server hardware provisioned for the instance. ‘The main tasks for this exercise are as follows 1 Prepare the Lab Environment 2. View Hardware and Software Requirements 3. Run the System Configuration Checker D Task 1: Prepare the Lab Environment 1. Ensure that the MSL-TMG1, 20462C-MIA-DC and 20462C-MIA-SQL virtual machines are running, and’ then log on to 20462C-MIA-SQL as ADVENTUREWORKS\Student with the password PaSSwOrd 2. Run Setup.cmd in the D\Labfiles\Lab02\Starter folder as Administrator. Task 2: View Hardware and Software Requirements Run Setup.exe in the C\Server2014-x64-ENU folder to run the SOL Server installation program. Ney In the SOL Server Installation Center, on the Planning page, view the Hardware and Software Requirements. > Task 3: Run the System Configuration Checker 1. In the SQL Server Installation Center, on the Tools l2b, use the System Configure assess the computer's readiness for a SQL Server installation Checker to 2. Keep the SQL Server Installation Center window open. You will use it again in a later exercise. Results: After this exercise, you should have run the SQL Server setup program and used the tools in the SQL Server Installation Center to assess the computer's readiness for SQL Server installation.

You might also like