SQL Server 2012
with PowerShell V3
Cookbook
Increase your productivity as a DBA, developer, or IT Pro, by using PowerShell with SQL Server
to simplify database management and automate repetitive, mundane tasks.
Donabel Santos
professional expertise distilled
P U B L I S H I N G
BIRMINGHAM - MUMBAI
SQL Server 2012 with PowerShell V3
Cookbook
Copyright © 2012 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the publisher,
except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers
and distributors will be held liable for any damages caused or alleged to be caused directly or
indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies
and products mentioned in this book by the appropriate use of capitals. However, Packt
Publishing cannot guarantee the accuracy of this information.
First published: October 2012
Production Reference: 1151012
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-84968-646-4
www.packtpub.com
Cover Image by Artie Ng ()
Credits
Author
Donabel Santos
Reviewers
Edwin Sarmiento
Project Coordinator
Yashodhan Dere
Proofreader
Chris Smith
Laerte Poltronieri Junior
Indexer
Acquisition Editor
Tejal R. Soni
Rukhsana Khambatta
Production Coordinator
Lead Technical Editor
Manu Joseph
Azharuddin Sheikh
Cover Work
Technical Editors
Charmaine Pereira
Sharvari Baet
Jalasha D'costa
Copy Editors
Alfida Paiva
Brandt D'Mello
Insiya Morbiwala
Aditya Nair
Manu Joseph
About the Author
Donabel Santos is a SQL Server MVP and is the senior SQL Server Developer/DBA/
Trainer at QueryWorks Solutions, a consulting and training company in Vancouver, BC. She
has worked with SQL Server since version 2000 in numerous development, tuning, reporting,
and integration projects with ERPs, CRMs, SharePoint, and other custom applications. She
holds MCITP certifications for SQL Server 2005/2008, and an MCTS for SharePoint. She is a
Microsoft Certified Trainer (MCT), and is also the lead instructor for SQL Server Administration,
Development, and SSIS courses at British Columbia Institute of Technology (BCIT).
Donabel is a proud member of PASS (Professional Association of SQL Server), and a proud BCIT
alumna (CST diploma and degree). She blogs (www.sqlmusings.com), tweets (@sqlbelle),
speaks and presents (SQLSaturday, VANPASS, Vancouver TechFest, and so on), trains (BCIT,
QueryWorks Solutions), and writes (Packt, Idera, SSWUG, and so on).
Microsoft Windows
PowerShell 3.0 First Look
ISBN: 978-1-849686-44-0
Paperback: 200 pages
A quick, succinct guide to the new and exciting features
in PowerShell 3.0
1. Explore and experience the new features found in
PowerShell 3.0
2. Understand the changes to the language and the
reasons why they were implemented
3. Quickly get up to date with the latest version of
Powershell with concise descriptions and simple
examples
Microsoft SQL Server 2012
Security Cookbook
ISBN: 978-1-849685-88-7
Paperback: 322 pages
Over 70 practical, focused recipes to bullet-proof your
SQL Server database and protect it from hackers and
security threats
1. Practical, focused recipes for securing your SQL
Server database
2. Master the latest techniques for data and code
encryption, user authentication and authorization,
protection against brute force attacks, denial-ofservice attacks, and SQL Injection, and more
3. A learn-by-example recipe-based approach that
focuses on key concepts to provide the foundation
to solve real world problems
Please check www.PacktPub.com for information on our titles
Microsoft SQL Server 2012
Integration Services: An
Expert Cookbook
ISBN: 978-1-849685-24-5
Paperback: 564 pages
Over 80 expert recipes to design, create, and deploy
SSIS packages
1. Full of illustrations, diagrams, and tips with clear
step-by-step instructions and real time examples
2. Master all transformations in SSIS and their
usages with real-world scenarios
3. Learn to make SSIS packages re-startable and
robust; and work with transactions
Microsoft SQL Server
2012 Performance Tuning
Cookbook
ISBN: 978-1-849685-74-0
Paperback: 478 pages
80 recipes to help you tune SQL Server 2012 and
achieve optimal performance
1. Learn about the performance tuning needs for
SQL Server 2012 with this book and ebook
2. Diagnose problems when they arise and employ
tricks to prevent them
3. Explore various aspects that affect performance
by following the clear recipes
Please check www.PacktPub.com for information on our titles