SQL Server 2014 Development Essentials

SQL Server 2014 Development Essentials

Basit A. Masood-Al-Farooq

Language: English

Pages: 150

ISBN: 1782172556

Format: PDF / Kindle (mobi) / ePub


Design, implement, and deliver a successful database solution with Microsoft SQL Server 2014

About This Book

  • Discover SQL Server 2014's new in-memory OLTP engine and performance-related improvements
  • Explore the fundamentals of database planning and the Server Transact-SQL language syntax
  • Gain hands-on experience with the use of scalar and table-valued functions, branching, and more advanced data structures

Who This Book Is For

If you are a database developer, architect, or administrator who wants to learn how to design, implement, and deliver a successful database solution with SQL Server 2014, then this book is for you. Existing users of Microsoft SQL Server will also benefit from this book as they will learn what's new in the latest version.

What You Will Learn

  • Get introduced to SQL Server 2014's new in-memory database engine
  • Understand SQL Server database architecture and relational database design
  • Use joins, subqueries, CTEs, and windowing functions to write advanced Transact-SQL queries
  • Learn about tools that let you monitor SQL Server database performance
  • Identify and troubleshoot blocks or deadlocks that might slow down a system
  • Design, create, and manage advanced database objects that include scalar and table-valued functions, views, stored procedures, and triggers
  • Use SQL Server 2014's structured error handling blocks to handle errors that occur in the Transact-SQL batches and programmable objects

In Detail

SQL Server 2014 Development Essentials is an easy-to-follow yet comprehensive guide that is full of hands-on examples. With Microsoft SQL Server 2014, you can design, build, and deploy mission-critical database applications. The variety of new in-memory features enable you to design high performance database applications that can improve the performance of your applications, making them as much as ten times more efficient in some cases.

Whether you are thinking about becoming a database developer, architect, or administrator, or you are a seasoned database expert, this book will provide you with all the skills you need to successfully create, design, and deploy databases using SQL Server 2014. You will also learn how to add, modify, and delete data stored within a database. You will use Transact-SQL statements to create and manage advanced database objects that include scalar and table-valued functions, views, stored procedures, and triggers. Finally, you will learn about how SQL Server works, how indexes and statistics improve query performance, and the new SQL Server 2014 in-memory technologies.

 

 

 

 

 

 

 

 

 

 

 

 

use data types to define variables and store procedure input and output parameters. You must select a data type for each column or variable appropriate for the data stored in that column or variable. In addition, you must consider storage requirements and choose data types that allow for efficient storage. For example, you should always use tinyint instead of smallint, int, or bigint if you want to store whole positive integers between 0 and 255. This is because tinyint is a fixed 1-byte field,

USE [CH02_03]; GO ALTER TABLE [Book_Info] ADD [Topic_ID] INT NOT NULL; GO Dropping a table with T-SQL DDL statements We use the DROP TABLE statement to delete the table from the SQL Server database. The basic syntax for this is as follows: DROP TABLE table_name [ 44 ] Chapter 2 For example, enter and execute the following T-SQL code to drop the Book_Info_MO table from the CH02_03 database: USE [CH02_03]; GO DROP TABLE Book_Info_MO; GO Creating and modifying tables with SSMS 2014 You can

you want to delete and choose Delete from the menu. Click on OK to delete the table. Grant, deny, and revoke permissions to securables You can use SQL Server Management Studio or the T-SQL DCL statements to grant, revoke, and deny permissions to securables. Grant, deny, and revoke permissions to securables with T-SQL DCL statements In this section, we will use T-SQL DCL statements to grant, deny and revoke permissions. [ 46 ] Chapter 2 Granting permissions to securables with T-SQL DCL

order in which data is returned and returns rows in a random order. If the table has a clustered index, SQL Server returns the rows in a clustered index order. Therefore, we use the ORDER BY clause in your SELECT statements to sort the data returned by the query based on the columns' sort order specified in the ORDER BY clause. The ORDER BY clause guarantees the order in which data is returned. [ 64 ] Chapter 3 For example, to display a sales representative's sales-related information ordered

made up of index pages that contain pointers to the data rows. In addition, SQL Server sorts table rows in the clustered index order based on key column values, while the nonclustered index does not affect the table sort order. When we define the nonclustered index on a table first, the nonclustered index contains a nonclustered index key value and a row locator, which points to a heap that contains a key value. However, if the table has a clustered index, a leaf node of the nonclustered index

Download sample

Download