SQL Server Execution Plans


Book Description

If a query is performing poorly, and you can't understand why, then that query's execution plan will tell you not only what data set is coming back, but also what SQL Server did, and in what order, to get that data. It will reveal how the data was retrieved, and from which tables and indexes, what types of joins were used, at what point filtering, sorting and aggregation occurred, and a whole lot more. These details will often highlight the likely source of any problem. I wrote this book with the singular goal of teaching you how to read SQL Server Execution plans It will explain, among many other things, the following: How to capture execution plans using manual and automatic methods A documented method for reading and interpreting execution plans How common SQL Server objects, such as indexes, views, stored procedures, and so on, appear in execution plans How to control execution plans with hints and plan guides, and why this is a double-edged sword How the Query Store works with, and collects data on, execution plans With this knowledge, you'll have everything you need to read the execution plan, for any query of your own, regardless of complexity, and understand what it does and what is causing the bad performance. It is still your job to work out how best to fix it, but your new understanding of execution plans will give a much better chance of success!




SQL Server Query Performance Tuning


Book Description

Queries not running fast enough? Wondering about the in-memory database features in 2014? Tired of phone calls from frustrated users? Grant Fritchey’s book SQL Server Query Performance Tuning is the answer to your SQL Server query performance problems. The book is revised to cover the very latest in performance optimization features and techniques, especially including the newly-added, in-memory database features formerly known under the code name Project Hekaton. This book provides the tools you need to approach your queries with performance in mind. SQL Server Query Performance Tuning leads you through understanding the causes of poor performance, how to identify them, and how to fix them. You’ll learn to be proactive in establishing performance baselines using tools like Performance Monitor and Extended Events. You’ll learn to recognize bottlenecks and defuse them before the phone rings. You’ll learn some quick solutions too, but emphasis is on designing for performance and getting it right, and upon heading off trouble before it occurs. Delight your users. Silence that ringing phone. Put the principles and lessons from SQL Server Query Performance Tuning into practice today. Covers the in-memory features from Project Hekaton Helps establish performance baselines and monitor against them Guides in troubleshooting and eliminating of bottlenecks that frustrate users




The Art of High Performance SQL Code


Book Description

Execution plans show you what's going on behind the scenes in SQL Server. They can provide you with a wealth of information on how your queries are being executed by SQL Server, including: Which indexes are being used, and where no indexes are being used at all. How the data is being retrieved, and joined, from the tables defi ned in your query. How aggregations in GROUP BY queries are put together. The anticipated load and the estimated cost that all these operations place upon the system. Grant Fritchey's book is the only in-depth look at how to improve your SQL query performance through careful design of execution plans. Sample chapters of the ebook have garnered stunning reviews, such as: "All I can say is WOW. This has to be the best reference I have ever seen on Execution Plans in SQL Server. My hats off to Grant Fritchey" Jonathan Kehayias.




SQL Server 2017 Administration Inside Out


Book Description

Conquer SQL Server 2017 administration—from the inside out Dive into SQL Server 2017 administration—and really put your SQL Server DBA expertise to work. This supremely organized reference packs hundreds of timesaving solutions, tips, and workarounds—all you need to plan, implement, manage, and secure SQL Server 2017 in any production environment: on-premises, cloud, or hybrid. Four SQL Server experts offer a complete tour of DBA capabilities available in SQL Server 2017 Database Engine, SQL Server Data Tools, SQL Server Management Studio, and via PowerShell. Discover how experts tackle today’s essential tasks—and challenge yourself to new levels of mastery. • Install, customize, and use SQL Server 2017’s key administration and development tools • Manage memory, storage, clustering, virtualization, and other components • Architect and implement database infrastructure, including IaaS, Azure SQL, and hybrid cloud configurations • Provision SQL Server and Azure SQL databases • Secure SQL Server via encryption, row-level security, and data masking • Safeguard Azure SQL databases using platform threat protection, firewalling, and auditing • Establish SQL Server IaaS network security groups and user-defined routes • Administer SQL Server user security and permissions • Efficiently design tables using keys, data types, columns, partitioning, and views • Utilize BLOBs and external, temporal, and memory-optimized tables • Master powerful optimization techniques involving concurrency, indexing, parallelism, and execution plans • Plan, deploy, and perform disaster recovery in traditional, cloud, and hybrid environments For Experienced SQL Server Administrators and Other Database Professionals • Your role: Intermediate-to-advanced level SQL Server database administrator, architect, developer, or performance tuning expert • Prerequisites: Basic understanding of database administration procedures




Sams Teach Yourself Visual Basic .NET in 21 Days


Book Description

This revision of a bestseller will provide critical information on the many changes coming in the new version of Visual Basic. Includes a proven, step-by-step method for learning VB, which is especially helpful as programmers approach the wide variety of powerful features and tools in Visual Basic.NET.




SQL Server Source Control Basics


Book Description

Few software developers would build an application without using source control, but its adoption for databases has been slower. Yet without source control to maintain the scripts necessary to create our database objects, load lookup data, and take other actions, we cannot guarantee a reliable and repeatable database deployment process, let alone coordinate database upgrades with changes to the application. We also run the risk that our "ad hoc" database patching will cause inconsistencies and data loss. Source control can and should play a key role in the database development and deployment process, and this book will show you exactly how to get started. It provides 'just enough' detail about the core components of a source control system and how to incorporate that system into the database development and deployment processes, covering: Database Source Control architecture - what to include, how to structure the components Collaborative editing - teamwork on a database project, while minimizing change conflicts and data loss. Change auditing - what changed between versions and who changed it? Branching -work independently on separate features and control what to deploy and when Merging - what happens if one user changes a column name while another updates its data type? A merge operation lets the team decide the correct outcome Building and Deploying databases - building new databases and upgrading existing ones from source control Every chapter follows the same "half-theory, half practice" template, so you learn the concepts then see how they work.




Programming Visual Basic 2008


Book Description

Ever since Visual Basic was merged into .NET, it's become the core language for creating business applications with Windows. The latest version, VB 2008, is even more useful -- and provides even more incentive for migrating from VB 6. All it lacks is a good book on how to harness its power. Programming Visual Basic 2008 fills the void. Written in a lively and engaging style by a developer who's grown up with Visual Basic, including both VB 6 and VB .NET, this hands-on guide addresses the core topics of the new VB, from basic to complex, with plenty of code examples. Programming Visual Basic 2008 also examines .NET programming from the application level with a chapter-by-chapter plan for developing, documenting, and deploying a full data-driven application. You learn, step-by-step, how to build and deploy a library management system, complete with patron, inventory, and barcode support. The book's broad range of topics include: VB language and its syntax An overview of the .NET Framework Object-oriented development in VB and .NET Generic objects, collections, and nullable types Design and management of software projects Integrating desktop features with Windows Forms Database design with SQL Server 2008 Database interface design with ADO.NET The new LINQ feature, and how to use it within VB and .NET Embedding XML within application source code Encryption and authentication in .NET Interacting with data stored in files and directories Web development using ASP.NET Deploying an application to a user's workstation And much more Programming Visual Basic 2008 is ideal for VB 6 programmers who are ready to move to .NET, as well as VB.NET programmers who wish to improve their project-focused software development skills. Programming novices and developers coming from other languages will find the book valuable because of its language instruction and project design knowledge. Once you finish the book, you will have a firm grasp of VB 2008's core concepts and language elements, and understand how to build VB projects as they were intended -- as complete, cohesive solutions.




SQL Server Execution Plans


Book Description

Every day, out in the various online forums devoted to SQL Server, and on Twitter, the same types of questions come up repeatedly: Why is this query running slowly? Why is SQL Server ignoring my index? Why does this query run quickly sometimes and slowly at others? My response is the same in each case: have you looked at the execution plan? An execution plan describes what's going on behind the scenes when SQL Server executes a query. It shows how the query optimizer joined the data from the various tables defined in the query, which indexes it used, if any, how it performed any aggregations or sorting, and much more. It also estimates the cost of all of these operations, in terms of the relative load placed on the system. Every Database Administrator, developer, report writer, and anyone else who writes T-SQL to access SQL Server data, must understand how to read and interpret execution plans.My book leads you right from the basics of capturing plans, through how to interrupt them in their various forms, graphical or XML, and then how to use the information you find there to diagnose the most common causes of poor query performance, and so optimize your SQL queries, and improve your indexing strategy.




Beginning Microsoft SQL Server 2012 Programming


Book Description

Get up to speed on the extensive changes to the newest release of Microsoft SQL Server The 2012 release of Microsoft SQL Server changes how you develop applications for SQL Server. With this comprehensive resource, SQL Server authority Robert Vieira presents the fundamentals of database design and SQL concepts, and then shows you how to apply these concepts using the updated SQL Server. Publishing time and date with the 2012 release, Beginning Microsoft SQL Server 2012 Programming begins with a quick overview of database design basics and the SQL query language and then quickly proceeds to show you how to implement the fundamental concepts of Microsoft SQL Server 2012. You'll explore the key additions and changes to this newest version, including conditional action constructs, enhanced controls for results paging, application integration with SharePoint and Excel, and development of BI applications. Covers new features such as SQL Azure for cloud computing, client-connectivity enhancements, security and compliance, data replication, and data warehouse performance improvements Addresses essential topics including managing keys, writing scripts, and working with store procedures Shares helpful techniques for creating and changing tables, programming with XML, and using SQL Server Reporting and Integration Services Beginning Microsoft SQL Server 2012 Programming demystifies even the most difficult challenges you may face with the new version of Microsoft SQL Server.




Building ASP.NET Server Controls


Book Description

* Up to date for the latest release version of .NET * Written by two Microsoft employees who have been using the technology for both internal and external use since it was in alpha stage. * Describes the ASP.NET server control architecture in Visual Studio .NET 2003 covering state management, events, rendering, cross-platform support, control lifecycle, localization and deployment. * Provides background on User Controls as compared with server controls, discussing the benefits and strengths of each. * Discusses the various methods available to create server controls including inheritance, composition, and from scratch. Discusses when to use Control as a base class as compared to WebControl highlighting the tradeoffs. * Demonstrates how to integrate client-side development technologies such as DHTML and JavaScript with server control technology to create powerful interactive controls. * Covers ASP.NET mobile server control development including an in depth discussion of browser capabilities and device adapters when targeting the various mobile devices available. * Covers how to enrich the design-time experience when building custom server controls including custom designers, custom property editors, as well as other design-time enhancements.