Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
SQL Server 2017 Developer???s Guide
SQL Server 2017 Developer???s Guide

SQL Server 2017 Developer???s Guide: A professional guide to designing and developing enterprise database applications

eBook
€8.99 €36.99
Paperback
€45.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

SQL Server 2017 Developer???s Guide

Review of SQL Server Features for Developers

Before delving into the new features in SQL Server 2016 and 2017, let's have a quick recapitulation of the SQL Server features for developers that are already available in the previous versions of SQL Server. Please note that this chapter is not a comprehensive development guide; covering all features would be out of the scope of this book. Recapitulating the most important features will help you remember what you already have in your development toolbox, and also understand the need for and the benefits of the new or improved features in SQL Server 2016 and 2017.

This chapter has a lot of code. As this is not a book for beginners, the intention of this chapter is not to teach you the basics of database development. It is rather a reminder for the powerful and efficient Transact-SQL (T-SQL) and other elements included in SQL Server...

The mighty Transact-SQL SELECT

You probably already know that the most important SQL statement is the mighty SELECT statement you use to retrieve data from your databases. Every database developer knows the basic clauses and their usage:

  • SELECT to define the columns returned, or a projection of all table columns
  • FROM to list the tables used in the query and how they are associated, or joined
  • WHERE to filter the data to return only the rows that satisfy the condition in the predicate
  • GROUP BY to define the groups over which the data is aggregated
  • HAVING to filter the data after the grouping with conditions that refer to aggregations
  • ORDER BY to sort the rows returned to the client application

Besides these basic clauses, SELECT offers a variety of advanced possibilities as well. These advanced techniques are unfortunately less exploited by developers, although they are really...

DDL, DML, and programmable objects

As a developer, you are often also responsible for creating the database objects. Of course, in an application, you need also to insert, update, and delete the data. In order to maintain data integrity, meaning enforcing data to comply with business rules, you need to implement constraints. In our quick review of the data definition language (DDL) and data modification language (DML) elements, we will look at the following statements:

  • CREATE for creating tables and programmatic objects
  • ALTER to add constraints to a table
  • DROP to drop an object
  • INSERT to insert new data
  • UPDATE to change existing data
  • DELETE to delete the data

In a SQL Server database, you can also use programmatic objects. You can use triggers for advanced constraints or to maintain some redundant data such as aggregated data. You can use other programmatic objects for data...

Transactions and error handling

In a real-world application, errors always appear. Syntax or even logical errors can be in the code, the database design might be incorrect, there might even be a bug in the database management system you are using. Even if everything works correctly, you might get an error because the users insert wrong data. With Transact-SQL error handling you can catch such user errors and decide what to do upon them. Typically, you want to log the errors, inform the users about the errors, and sometimes even correct them in the error handling code.

Error handling for user errors works on the statement level. If you send SQL Server a batch of two or more statements and the error is in the last statement, the previous statements execute successfully. This might not be what you desire. Often, you need to execute a batch of statements as a unit, and fail all of...

Beyond relational

Beyond relational is actually only a marketing term. The relational model, used in the relational database management system, is nowhere limited to specific data types, or specific languages only. However, with the term beyond relational, we typically mean using specialized and complex data types that might include spatial and temporal data, and XML or JSON data, and extending the capabilities of the Transact-SQL language with CLR languages like Visual C#, or statistical languages like R. SQL Server, in versions before 2016, already supports some of the features mentioned. Here is a quick review of this support, which includes:

  • Spatial data
  • CLR support
  • XML data

Spatial data

In modern applications, often...

Summary

In this chapter, we reviewed the SQL Server features for developers that already exist in the previous versions. You can see that this support goes well beyond basic SQL statements, and also beyond pure Transact-SQL.

The features recapitulation in this chapter is also useful as an introduction to new features in SQL Server 2016 and 2017, introduced in the following chapters, especially in Chapter 4, Transact-SQL and Database Engine Enhancement; Chapter 5, JSON Support in SQL Server; Chapter 7, Temporal Tables; and Chapter 13, Supporting R in SQL Server.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Build database applications by using the development features of SQL Server 2017
  • Work with temporal tables to get information stored in a table at any time
  • Use adaptive querying to enhance the performance of your queries

Description

Microsoft SQL Server 2017 is a milestone in Microsoft's data platform timeline, as it brings in the power of R and Python for machine learning and containerization-based deployment on Windows and Linux. This book prepares you for advanced topics by starting with a quick introduction to SQL Server 2017's new features. Then, it introduces you to enhancements in the Transact-SQL language and new database engine capabilities before switching to a different technology: JSON support. You will take a look at the security enhancements and temporal tables. Furthermore, the book focuses on implementing advanced topics, including Query Store, columnstore indexes, and In-Memory OLTP. Toward the end of the book, you'll be introduced to R and how to use the R language with Transact-SQL for data exploration and analysis. You'll also learn to integrate Python code into SQL Server and graph database implementations as well as the deployment options on Linux and SQL Server in containers for development and testing. By the end of this book, you will be armed to design efficient, high-performance database applications without any hassle.

Who is this book for?

Database developers and solution architects looking to design efficient database applications using SQL Server 2017 will find this book very useful. In addition, this book will be valuable to advanced analysis practitioners and business intelligence developers. Database consultants dealing with performance tuning will get a lot of useful information from this book as well. Some basic understanding of database concepts and T-SQL is required to get the best out of this book.

What you will learn

  • • Explore the new development features introduced in SQL Server 2017
  • • Identify opportunities for In-Memory OLTP technology
  • • Use columnstore indexes to get storage and performance improvements
  • • Exchange JSON data between applications and SQL Server
  • • Use the new security features to encrypt or mask the data
  • • Control the access to the data on the row levels
  • • Discover the potential of R and Python integration
  • • Model complex relationships with the graph databases in SQL Server 2017

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 16, 2018
Length: 816 pages
Edition : 1st
Language : English
ISBN-13 : 9781788479936
Vendor :
Microsoft
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 16, 2018
Length: 816 pages
Edition : 1st
Language : English
ISBN-13 : 9781788479936
Vendor :
Microsoft
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 141.97
SQL Server 2017 Integration Services Cookbook
€49.99
SQL Server 2017 Administrator's Guide
€45.99
SQL Server 2017 Developer???s Guide
€45.99
Total 141.97 Stars icon
Banner background image

Table of Contents

18 Chapters
Introduction to SQL Server 2017 Chevron down icon Chevron up icon
Review of SQL Server Features for Developers Chevron down icon Chevron up icon
SQL Server Tools Chevron down icon Chevron up icon
Transact-SQL and Database Engine Enhancements Chevron down icon Chevron up icon
JSON Support in SQL Server Chevron down icon Chevron up icon
Stretch Database Chevron down icon Chevron up icon
Temporal Tables Chevron down icon Chevron up icon
Tightening Security Chevron down icon Chevron up icon
Query Store Chevron down icon Chevron up icon
Columnstore Indexes Chevron down icon Chevron up icon
Introducing SQL Server In-Memory OLTP Chevron down icon Chevron up icon
In-Memory OLTP Improvements in SQL Server 2017 Chevron down icon Chevron up icon
Supporting R in SQL Server Chevron down icon Chevron up icon
Data Exploration and Predictive Modeling with R Chevron down icon Chevron up icon
Introducing Python Chevron down icon Chevron up icon
Graph Database Chevron down icon Chevron up icon
Containers and SQL on Linux Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.6
(5 Ratings)
5 star 20%
4 star 40%
3 star 20%
2 star 20%
1 star 0%
Minnesota Oct 19, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Book has great examples using SQL and details for developers on creating sql code for new 2016 2017 features like JSON and encryption. A dba may decide to skip past and go to the dba topics but still highly recommended.
Amazon Verified review Amazon
Ian Stirk Oct 17, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
ConclusionThe book’s title is misleading. This book is essentially the SQL Server 2016 version of the book, amended to take into account SQL Server 2017. I would estimate 75% of the book relates to SQL server 2016, and 25% to 2017. In some ways I felt a bit cheated. That said, if you’re unfamiliar with both SQL Server 2016 and 2017, this book is an excellent starting place, and would merit a rating of 4.8 (out of 5).This book aims to introduce you to the salient new and enhanced features in SQL Server 2016 and 2017, and succeeds. It is generally easy to read, well written, with useful explanations, tips, example code, and diagrams.Whilst the book doesn’t cover all the new features (e.g. PolyBase), it does cover the major ones. I suspect the more you know about SQL Server already, the more useful this book will be. Since the book focuses on new and enhanced features, large subject areas are omitted (e.g. database design).Sometimes, before discussing an extended feature (e.g. In-Memory OLTP), a large amount of background information is given with reference to previous editions of SQL Server. Whilst this may be useful if you don’t know the feature, it could be argued it is unnecessary - if you already know SQL Server 2014.It might have been useful to include a section discussing SQL Server changes in terms of some of the industry’s wider trends (e.g. Big Data, Social Media, the Cloud).Overall, if you want to know more about the new and enhanced features in SQL Server 2016 and 2017 together, I can recommend this well-written book.
Amazon Verified review Amazon
PRASHANT KHANDARE Sep 06, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Good Product.
Amazon Verified review Amazon
A C Mar 30, 2018
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
There is lots of good info in this book, though it is clearly a partially updated version of the 2016 book. Whole sections discuss SQL Server 2016 as the new version, not 2017. And the large page count is partly due to the number of pages that just contain a short paragraph.
Amazon Verified review Amazon
Holger Aug 22, 2019
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Das E-Book ist schlecht lesbar, Grafiken überlappen den Text und die Texte mit "Source Codes" sehen grausig aus. Schwierig was über den Inhalt zu erfahren und zu rezensieren, wenn es so sehr anstrengt den Text zu lesen.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.