Book Image

What's New in SQL Server 2012

Book Image

What's New in SQL Server 2012

Overview of this book

Microsoft SQL Server has been part of the enterprise database landscape since SQL Server 7 arrived in 1998 and has evolved into the relational and BI platform of choice by businesses around the globe. The performance and full feature set of SQL Server has been widely recognized by the business community and it is viewed as a powerful weapon in their database and business intelligence arsenal. SQL Server brings numerous benefits to all businesses, central to which is a thorough understanding of the technology, both current and new.This is the book both DBAs and developers always wanted to buy but could never find in the bookstore. This is a SQL Server book that contains only the new features introduced in SQL Server 2012.This book will give you a competitive advantage by helping you to quickly learn and understand the new features of SQL Server 2012. Most readers will already have an established knowledge of SQL Server and will want to update their 2008/2008R2 knowledge swiftly with least pain.This book takes you through all of the new features of SQL Server 2012, from installing core database services and features, to the new administration and updated Transact-SQL functions. You will discover the new Analysis Services features, introduce data alerts and reporting features and explore the new enhancements to Integration Services. In addition you will learn how to automate, cleanse and transform critical business data with DQS and world-class enterprise level availability features.Finally, you will venture into simulating real-world database loads using Distributed Replay and complete your journey with a look at the new SQL Server cloud services and the new Hadoop big data platform.
Table of Contents (19 chapters)
What's New in SQL Server 2012
Credits
About the Authors
Acknowledgment
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Installing SQL Server 2012
Index

Preface

Microsoft SQL Server has been a part of the enterprise database landscape since SQL Server 7 arrived in 1998, and has evolved into the relational and BI platform of choice by businesses around the globe. The performance and full feature set of SQL Server has been widely recognized by the business community and it is viewed as a powerful weapon in their database and business intelligence arsenal. SQL Server brings numerous benefits, and central to their successful implementation, is a thorough understanding of the technology, both current and new.

We have written the book that we, as working DBAs and developers, would want to read. This is the book we always wanted to buy, but could never find in the bookstore. When Packt Publishing initially approached us with the idea of a SQL Server 2012 book, we discussed the issue of "What's New..." books always being padded out with too much old stuff we already knew. They agreed to let us write this - a SQL Server book that contains the new features, and only the new features, in SQL Server 2012.

This book was written with the deliberate intent of giving you a competitive advantage by helping you quickly learn and understand the new features of SQL Server 2012. Most readers will already have an established knowledge of SQL Server and will want to update their 2008/2008 R2 knowledge swiftly, and with the least pain. We understand the importance of keeping up-to-date with current technologies, both in terms of your career development, and implementing new features to give your employer a competitive advantage.

In the modern time-pressured world, it can be difficult to find adequate time to learn new skills. We have done our very best to provide you with a concise and useful reference for SQL Server 2012, and we hope you find this book worthy of a permanent position on your desk.

What this book covers

Chapter 1, Installing SQL Server 2012, shows you the differences between the new editions of SQL Server 2012. A step-by-step guide will walk you through installing the core database engine and advanced options. You will receive advice along the way, to help you maximize the performance of your installation.

Chapter 2, SQL Server Administration, will make you familiar with the new look SQL Server Management Studio, and then you will discover spatial indexes and columnstore indexes. You will also delve into contained databases and Master Data Services, and learn about the new dynamic management views.

Chapter 3, Transact SQL, teaches you how to write queries using the new string and datetime functions inside real world examples. You will explore the error handling clauses, and see how the new FileTable table type builds on existing filestream functionality. You will be formally introduced to SQL Server Data Tools, your new home for SQL development, and learn how to use the new analytical functions.

Chapter 4, Analysis Services, covers the three business intelligence semantic models, the differences between them, and also how to create them. You will discover how to utilize resource usage reporting, geek out with extended events, and learn how to work around the string store constraint, using scalable string storage.

Chapter 5, Reporting Services, shows you which features have been deprecated in SQL Server Reporting Services 2012. You will learn how to use the new Excel and Word Renderers, and how to set up Data Alerts.

Chapter 6, Integration Services, introduces you to the new SSIS catalog, the SSIS Admin security role, and how to upgrade from SQL Server 2005 and 2008. You will learn about shared connection managers, deployment models and package editor enhancements. Furthermore you will look at data taps and Change Data Capture.

Chapter 7, Data Quality Services, explains why you would want to use Data Quality Services, and how to install and configure it. You will learn how to create a data quality project and cleanse data using real world examples. Furthermore, you will gain knowledge DQS security issues.

Chapter 8, AlwaysOn, will investigate AlwaysOn Availability Groups and their restrictions, and will teach you how to create an availability group in your own environment. You will learn about the advantages of AlwaysOn Availability Groups compared to other high availability solutions.

Chapter 9, Distributed Replay, will make you familiar with the new terminology and the components that constitute Distributed Replay. A hands-on example will help you understand how to install and configure it. You will capture a trace, preprocess it, replay it and monitor its progress, and then cancel it.

Chapter 10, Big Data and the Cloud, introduces you to SQL Azure and how to set up and migrate to a SQL Azure database. You will learn about big data platforms, discover the Hive database and be introduced to the Sqoop connector. Finally, you will learn about Microsoft's up-and-coming Hadoop release for Windows and SQL Server.

What you need for this book

You need the following:

  • Windows Server 2008 SP2, Windows Server 2008 R2 SP1, Windows Server 2012, or Windows 7 SP1.

  • SQL Server 2012 Enterprise Edition (Evaluation Edition or Developer Edition will do).

  • A link to download SQL Server 2012 Evaluation Edition is provided in Chapter 1.

Who this book is for

This concise reference is for database administrators, SQL Server developers and BI professionals. Anyone who is familiar with SQL Server 2008 R2 and needs to make the jump to the latest version with the shortest learning curve will find this book useful.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

CREATE TABLE #Customer
(
  FirstName varchar(30) NOT NULL,
  MiddleName varchar(30) NULL,
  LastName varchar(30) NOT NULL
)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

[default]
exten => s,1,Dial(Zap/1|30)
exten => s,2,Voicemail(u100)
exten => s,102,Voicemail(b100)
exten => i,1,Voicemail(s0)

Any command-line input or output is written as follows:

# cp /usr/src/asterisk-addons/configs/cdr_mysql.conf.sample     
	/etc/asterisk/cdr_mysql.conf

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: " The Distributed Replay Controller server reads transactions from the intermediate file".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.