Synopses & Reviews
Secure, reliable, and scalable, SQL Server 2008 delivers a dynamic, smart, and productive data platform for all your data-related needs and offers many new features that will change how you administer a database server. Among these new features is the ability to use Windows PowerShell 2.0 scripts to automate and manage various aspects of the Windows environment.
Written by well-known and highly respected SQL Server experts, this nuts-and-bolts guide brings together the best of both worldsdatabase and system administrationto help you manage, automate, and control your environment. You'll discover how to construct effective and practical solutions that can improve SQL Server administration and monitoring while saving you countless hours of manual effort and ensuring more consistent results.
Packed with clear, well-constructed examples throughout, this tutorial-based resource covers the fundamentals of Windows PowerShell so you can get started writing scripts in Windows PowerShell to perform SQL Server 2008 administration tasks immediately.
What you will learn from this book
- How Windows Management Instrumentation Providers for SQL Server enable you to manage SQL Server services and network connectivity
How to manage SQL Server objects, including the new policy objects using the new SQL Server 2008 support for Windows PowerShell
Ways to use SQL Server Management Objects to create database and database objects, and backup and restore databases
Techniques for building an SQL Server inventory over an existing or new environment
Tips for installing, monitoring, collecting performance data, database scripting, and more, using Windows PowerShell
Various programming features such as inputs, outputs, debugging, functions, and more.
Who this book is for
This book is for SQL Server database administrators, developers, or system administrators who are looking to manage SQL Server 2008 using Windows PowerShell 2.0. No previous Windows PowerShell experience is assumed.
Wrox guides are crafted to make learning programming languages and technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved.
Synopsis
SQL Server 2008 Administration with Windows PowerShellis a nuts and bolts guide to creating Windows PowerShell scripts that can be used to administer every aspect of SQL Server. With a very hands-on approach, it guides the reader through the basics of Windows PowerShell, the available Windows PowerShell components that have been integrated into SQL Server 2008, and actual administration tasks. By providing clear, well-structured examples,
SQL Server 2008 Administration with Windows PowerShell shows the reader how to construct effective solutions that can improve the SQL Server administration and monitoring in an enterprise environment.
Readers who do not have any background in Windows PowerShell will be introduced to it in the first two chapters. These two chapters help the reader understand the basics of writing Windows PowerShell scripts and show the reader how to use the scripts to administer the overall operating system. Chapter 3, 4 and 5 take on the Windows PowerShell components that have been integrated into SQL Server 2008, and explain the usage of each of them in great details. Chapter 6 and 7 provide the reader with ample examples of building a SQL Server tasks inventory over an existing or new environment, and create Windows PowerShell scripts to handle an array of SQL Server administrative tasks for servers in the inventory.
Synopsis
The definitive guide to automating SQL Server admnistration with Powershell scripts
If you're a SQL Server database administrator, this book will make your life easier. Windows PowerShell is an administrative scripting tool that allows you to automate many tasks you're probably currently doing by hand. This nuts-and-bolts guide shows you how to create Windows PowerShell scripts to administer almost every aspect of SQL Server.
You'll get a thorough introduction to PowerShell basics and all the PowerShell components that have been integrated into SQL Server 2008, as well as actual administration tasks. The book provides complete scripts that have been tested and proven, saving you hours of effort.
- The new release of Microsoft SQL Server 2008 now includes Windows PowerShell, allowing administrators of large-scale enterprise databases to automate many tasks
- SQL Server 2008 Administration with Windows PowerShell introduces you to PowerShell, covering its components in detail as well as providing basic instruction in using scripts to administer the database
- The book includes numerous examples of SQL tasks that have been automated and also provides completed scripts that you can put to use immediately
- The Companion Web site includes complete code scripts
If you're a database administrator, the scripts and techniques in SQL Server 2008 Administration with Windows PowerShell will save you hours of effort.
Table of Contents
Introduction.
1. What is Windows PowerShell?
2. Windows PowerShell Command Types, SnapIns, and Cmdlets.
3. Windows PowerShell Programming, Scripting, Error Handling and Debugging.
4. Windows PowerShell Functions, Parameters, Sourcing, Scopes and User Profiles.
5. Working with File System, Registry, and Variables.
6. Working with Event Logs.
7. Working with Windows Services and Processes.
8. Working with WMI.
9. WMI Provider for Configuration Management.
10. WMI Provider for Server Events.
11. Windows PowerShell in SQL Server 2008 Environment, SQL Server PowerShell Provider.
12. Managing Policies through SQLSERVER:\SQLPolicy.
13. Windows PowerShell and SMO.
14. Building SQL Server Standards and PowerShell Coding Standard.
15. Building SQL Server Inventory.
16. Database Administration and SQL Server Installation.
17. Collecting SQL Server Performance and Host Performance Data.
18. Monitoring SQL Server.
19. Monitoring Disk Space Usage, Database Files and Backups.
20. Defining Policies.
21. Generating Database Scripts.
Appendix A: cmdlets related to Core Snapins.
Index.