๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Defensive Database Programming with SQL Server

โœ Scribed by Alex Kuznetsov


Publisher
Red Gate Books
Year
2010
Tongue
English
Leaves
302
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Resilient T-SQL code is code that is designed to last, and to be safely reused by others. The goal of defensive database programming, the goal of this book, is to help you to produce resilient T-SQL code that robustly and gracefully handles cases of unintended use, and is resilient to common changes to the database environment. Too often as developers, we stop work as soon as our code passes a few basic tests to confirm that it produces the 'right result' in a given use case. We do not stop to consider what other possible ways in which the code might be used in the future, or how our code will respond to common changes to the database environment, such as a change in the database language setting, or a change to the nullability of a table column, and so on. In the short-term, this approach is attractive; we get things done faster. However, if our code is designed to be used for more than just a few months, then it is very likely that such changes can and will occur, and the inevitable result is broken code or, even worse, code that silently starts to behave differently, or produce different results. When this happens, the integrity of our data is threatened, as is the validity of the reports on which critical business decisions are often based. At this point, months or years later, and long after the original developer has left, begins the painstaking process of troubleshooting and fixing the problem. Would it not be easier to prevent all this troubleshooting from happening? Would it not be better to spend a little more time and effort during original development, to save considerably more time on troubleshooting, bug fixing, retesting, and redeploying? This is what defensive programming is all about: we learn what can go wrong with our code, and we proactively apply this knowledge during development. This book is filled with practical, realistic examples of the sorts of problems that beset database programs, including: - Changes in database objects, such as tables, constraints, columns, and stored procedures. - Changes to concurrency and isolation levels. - Upgrades to new versions of SQL Server. - Changes in requirements. - Code reuse. - Problems causing loss of data integrity. - Problems with error handling in T-SQL. In each case, it demonstrates approaches that will help you understand and enforce (or eliminate) the assumptions on which your solution is based, and to improve its robustness. Ultimately, the book teaches you how to think and develop defensively, and how to proactively identify and eliminate potential vulnerabilities in T-SQL code.


๐Ÿ“œ SIMILAR VOLUMES


SQL Server Database Programming with Jav
โœ Ying Bai ๐Ÿ“‚ Library ๐Ÿ“… 2022 ๐Ÿ› Springer ๐ŸŒ English

<span>This textbook covers both fundamental and advanced Java database programming techniques for beginning and experienced students as well as programmers (courses related to database programming in Java with Apache NetBeans IDE 12 environment). A sample SQL Server 2019 Express database, CSE_DEPT,

SQL Server Database Programming with C#:
โœ YING BAI ๐Ÿ“‚ Library ๐Ÿ“… 2023 ๐Ÿ› CRC Press ๐ŸŒ English

One of the most popular database systems, Microsoft SQL Server 2019 Express, is presented and implemented in the book with over 40 real projects. This undergraduate textbook covers fundamental and advanced database programming techniques, which students learn by programming a database for both the w

Securing SQL Server: DBAs Defending the
โœ Peter A. Carter ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Apress ๐ŸŒ English

Protect your data from attack by using SQL Server technologies to implement a defense-in-depth strategy for your database enterprise. This new edition covers threat analysis, common attacks and countermeasures, and provides an introduction to compliance that is useful for meeting regulatory requirem

Securing SQL Server: DBAs Defending the
โœ Peter A. Carter ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Apress ๐ŸŒ English

<div><div>Protect your data from attack by using SQL Server technologies to implement a defense-in-depth strategy for your database enterprise. This new edition covers threat analysis, common attacks and countermeasures, and provides an introduction to compliance that is useful for meeting regulator

Securing SQL Server: DBAs Defending the
โœ Peter A. Carter (auth.) ๐Ÿ“‚ Library ๐Ÿ“… 2016 ๐Ÿ› Apress ๐ŸŒ English

<p>Protect your data from attack by using SQL Server technologies to implement a defense-in-depth strategy, performing threat analysis, and encrypting sensitive data as a last line of defense against compromise. The multi-layered approach in this book helps ensure that a single breach doesn't lead t

Learn SQL Database Programming: Query an
โœ Josephine Bush ๐Ÿ“‚ Library ๐Ÿ“… 2020 ๐Ÿ› Packt Publishing ๐ŸŒ English

<p><b>Learn everything you need to know to build efficient SQL queries using this easy-to-follow beginner's guide</b></p> <h4>Key Features</h4> <ul><li>Explore all SQL statements in depth using a variety of examples </li> <li>Get to grips with database querying, data aggregate, manipulation, and muc