Pro T-SQL Programmer's Guide [electronic resource] /
Natarajan, Jay.author.
Bruchez, Rudi.author.
Coles, Michael.author.
Shaw, Scott.author.
Cebollero, Miguel.author.
Pro T–SQL Programmer’s Guide is your guide to making the best use of the powerful, Transact-SQL programming language that is built into Microsoft SQL Server's database engine. This edition is updated to cover the new, in-memory features that are part of SQL Server 2014. Discussing new and existing features, the book takes you on an expert guided tour of Transact–SQL functionality. Fully functioning examples and downloadable source code bring technically accurate and engaging treatment of Transact–SQL into your own hands. Step–by–step explanations ensure clarity, and an advocacy of best–practices will steer you down the road to success. Transact–SQL is the language developers and DBAs use to interact with SQL Server. It’s used for everything from querying data, to writing stored procedures, to managing the database. Support for in-memory stored procedures running queries against in-memory tables is new in the language and gets coverage in this edition. Also covered are must-know features such as window functions and data paging that help in writing fast-performing database queries. Developers and DBAs alike can benefit from the expressive power of T-SQL, and Pro T-SQL Programmer's Guide is your roadmap to success in applying this increasingly important database language to everyday business and technical tasks. Covers the newly-introduced, in-memory database features Shares the best practices used by experienced professionals Goes deeply into the subject matter − an advanced book for the serious reader.
""Contents at a Glance""; ""Contents""; ""About the Authors""; ""About the Technical Reviewer""; ""Acknowledgments""; ""Introduction""; ""Chapter 1: Foundations of T-SQL""; ""A Short History of T-SQL""; ""Imperative vs. Declarative Languages""; ""SQL Basics""; ""Statements""; ""Databases""; ""Transaction Logs""; ""Schemas""; ""Tables""; ""Views""; ""Indexes""; ""Stored Procedures""; ""User-Defined Functions""; ""SQL CLR Assemblies""; ""Elements of Style""; ""Whitespace""; ""Naming Conventions""; ""One Entry, One Exit""; ""Defensive Coding""; ""The SELECT * Statement""
""Variable Initialization""""Summary""; ""Chapter 2: Tools of the Trade""; ""SQL Server Management Studio""; ""IntelliSense""; ""Code Snippets""; ""Keyboard Shortcut Schemes""; ""T-SQL Debugging""; ""SSMS Editing Options""; ""Context-Sensitive Help""; ""Graphical Query Execution Plans""; ""Project-Management Features""; ""The Object Explorer""; ""The SQLCMD Utility""; ""SQL Server Data Tools""; ""SQL Profiler""; ""Extended Events""; ""SQL Server Integration Services""; ""The Bulk Copy Program""; ""SQL Server 2014 Books Online""; ""The AdventureWorks Sample Database""; ""Summary""
""Chapter 3: Procedural Code""""Three-Valued Logic""; ""Control-of-Flow Statements""; ""The BEGIN and END Keywords""; ""The IF...ELSE Statement""; ""The WHILE, BREAK, and CONTINUE Statements""; ""The GOTO Statement""; ""The WAITFOR Statement""; ""The RETURN Statement""; ""The CASE Expression""; ""The Simple CASE Expression""; ""The Searched CASE Expression""; ""CASE and Pivot Tables""; ""The IIF Statement""; ""CHOOSE""; ""COALESCE and NULLIF""; ""Cursors""; ""Summary""; ""Chapter 4: User-Defined Functions""; ""Scalar Functions""; ""Recursion in Scalar User-Defined Functions""
""Procedural Code in User-Defined Functions""""Multistatement Table-Valued Functions""; ""Inline Table-Valued Functions""; ""Restrictions on User-Defined Functions""; ""Nondeterministic Functions""; ""State of the Database""; ""Summary""; ""Chapter 5: Stored Procedures""; ""Introducing Stored Procedures""; ""Metadata Discovery""; ""Natively Compiled Stored Procedures""; ""Managing Stored Procedures""; ""Stored Procedures Best Practices""; ""Stored Procedure Example""; ""Recursion in Stored Procedures""; ""Table-Valued Parameters""; ""Temporary Stored Procedures""
""Recompilation and Caching""""Stored Procedure Statistics""; ""Parameter Sniffing""; ""Recompilation""; ""Summary""; ""Chapter 6: In-Memory Programming""; ""The Drivers for In-Memory Technology""; ""Hardware Trends""; ""Getting Started with In-Memory Objects""; ""Step 1: Add a New Memory-Optimized Data FILEGROUP""; ""Step 2: Add a New Memory-Optimized Container""; ""Step 3: Create Your New Memory-Optimized Table""; ""Limitations on Memory-Optimized Tables""; ""In-Memory OLTP Table Indexes""; ""Hash Indexes""; ""Range Indexes""; ""Natively Compiled Stored Procedures""; ""Chapter 7: Triggers""
""DML Triggers""
Includes index.
Pro T–SQL Programmer’s Guide is your guide to making the best use of the powerful, Transact-SQL programming language that is built into Microsoft SQL Server's database engine. This edition is updated to cover the new, in-memory features that are part of SQL Server 2014. Discussing new and existing features, the book takes you on an expert guided tour of Transact–SQL functionality. Fully functioning examples and downloadable source code bring technically accurate and engaging treatment of Transact–SQL into your own hands. Step–by–step explanations ensure clarity, and an advocacy of best–practices will steer you down the road to success. Transact–SQL is the language developers and DBAs use to interact with SQL Server. It’s used for everything from querying data, to writing stored procedures, to managing the database. Support for in-memory stored procedures running queries against in-memory tables is new in the language and gets coverage in this edition. Also covered are must-know features such as window functions and data paging that help in writing fast-performing database queries. Developers and DBAs alike can benefit from the expressive power of T-SQL, and Pro T-SQL Programmer's Guide is your roadmap to success in applying this increasingly important database language to everyday business and technical tasks. Covers the newly-introduced, in-memory database features Shares the best practices used by experienced professionals Goes deeply into the subject matter − an advanced book for the serious reader.
SQL server.
Database management.
Database Management.