توضیحاتی در مورد کتاب Dynamic SQL: applications, performance, and security in Microsoft SQL Server
نام کتاب : Dynamic SQL: applications, performance, and security in Microsoft SQL Server
ویرایش : Second edition
عنوان ترجمه شده به فارسی : Dynamic SQL: برنامه ها، عملکرد و امنیت در Microsoft SQL Server
سری : Books for professionals by professionals
نویسندگان : Pollack, Edward
ناشر : Apress
سال نشر : 2018;2019
تعداد صفحات : 508
ISBN (شابک) : 9781484243176 , 148424317X
زبان کتاب : English
فرمت کتاب : pdf
حجم کتاب : 11 مگابایت
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
توضیحاتی در مورد کتاب :
نگاهی عمیق به کاربردهای فراوان SQL پویا در مایکروسافت SQL Server داشته باشید. این نسخه برای استفاده از جدیدترین ویژگیهای SQL Server 2016 و SQL Server 2017 و همچنین ترکیب چشمانداز در حال تغییر تجزیه و تحلیل و مدیریت پایگاه داده بهروزرسانی شده است. نمونههای کد با اشیاء و عملکردهای جدید سیستم بهروزرسانی شدهاند تا کارایی و قابلیت نگهداری را بهبود بخشند.
اجرای SQL پویا کلید جستجوی مقیاس بزرگ بر اساس معیارهای وارد شده توسط کاربر است. SQL پویا می تواند لیستی از مقادیر و حتی کد را با کمترین تأثیر بر عملکرد تولید کند. Dynamic SQL چرخش پویا داده ها را برای راه حل های هوش تجاری و همچنین سفارشی سازی اشیاء پایگاه داده را امکان پذیر می کند. با این حال، بسیاری از SQL پویا به دلیل نگرانی در مورد تزریق SQL یا قابلیت نگهداری کد نگران هستند.
SQL پویا: برنامهها، عملکرد و امنیت در Microsoft SQL Server b>به شما کمک می کند بهره وری و رضایت کاربر از برنامه های کاربردی انعطاف پذیر و پاسخگو را به طور ایمن و ایمن به سازمان خود بیاورید. افزایش توانایی سازمان شما برای پاسخگویی به سناریوهای تجاری که به سرعت در حال تغییر هستند، مزیت رقابتی را در یک بازار جهانی پر ازدحام و رقابتی ایجاد خواهد کرد. با تمرکز بر برنامه های کاربردی جدید و معماری مدرن پایگاه داده، این نسخه نشان می دهد که SQL پویا به تکامل خود ادامه می دهد و ابزاری ارزشمند برای مدیریت، بهینه سازی عملکرد و تجزیه و تحلیل است.
< /b>
آنچه خواهید آموخت
برنامههای کاربردی منعطف بسازید که به تغییرات پاسخ میدهند نیازهای کسب و کار
از کاربردهای خلاقانه، نوآورانه و سازنده SQL پویا استفاده کنید
در مورد تزریق SQL بدانید و از دفاع خود در برابر آن مطمئن باشید. آن
به نگرانیهای عملکرد در رویههای ذخیرهشده و SQL پویا رسیدگی میکند
عیبیابی و اشکالزدایی SQL پویا برای اطمینان از نتایج صحیح
مدیریت ویژگیهای خود در SQL Server را خودکار کنید
b>این کتاب برای چه کسی است
توسعه دهندگان و مدیران پایگاه داده به دنبال تقویت و ایجاد مهارت های کدنویسی T-SQL خود هستند. این کتاب برای توسعهدهندگانی که میخواهند تا عمق انعطافپذیری برنامه را بررسی کنند و مشکلات عملکرد مربوط به SQL پویا را عیبیابی کنند، ایدهآل است. این کتاب همچنین برای برنامه نویسانی ایده آل است که می خواهند بدانند SQL پویا در مورد چیست و چگونه می تواند به آنها کمک کند مزیت رقابتی را برای سازمان خود ارائه دهند.
فهرست مطالب :
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: What Is Dynamic SQL?
Understanding Dynamic SQL
A Simple Example
The EXEC Statement
Data Type to Use
Dynamic Execution Process
Dynamic SQL in Action
Advantages of Dynamic SQL
Optional or Customized Search Criteria
Customizable Everything
Optimize SQL Performance
Generate Large Amounts of T-SQL or Text, Fast!
Execute SQL Statements on Other Servers or Databases
Do the Impossible!
Dynamic SQL Considerations
Apostrophes Can Break Strings
NULL Can Break Strings
Difficult to Read and Debug
Permissions and Scope Are Different
Dynamic SQL Cannot be used in Functions
Dynamic SQL Style
Document Thoroughly
Debugging Dynamic SQL
Write Dynamic SQL Just Like Standard T-SQL
String Sizes and Truncation
Management Studio Text Display
Sp_executesql
Building Strings via Concatenation
Notes on Apostrophes
Conclusion
Chapter 2: Protecting Against SQL Injection
What Is SQL Injection?
Cleansing Inputs
Parameterizing Dynamic SQL
Schema Name and Square Brackets
Effective Spacing
Properly Type Inputs
Blind SQL Injection
Detection and Prevention
Security Testing
Scanning of Application Traffic
Log Review
Code Review
Software Patching
Limit URL Length
Use Views and/or Masking for Sensitive Data
Vendor Software
Login Pages
Conclusion
Chapter 3: Large Scale Searching
Why Use Dynamic Searches?
Custom Search Grids
Search Grid Considerations
Disallow Blank Searches
Data Paging
Conditional Paging
Search Limitations
Input-Based Search
Result Row Count
Additional Filtering Considerations
Alternatives
Conclusion
Chapter 4: Permissions and Security
The Principle of Least Privilege
Granular Permissions vs. Role Permissions
Dynamic SQL and Ownership Chaining
Changing Security Context On-the-Fly
Where Do Security Disasters Come From?
Users, Passwords, and Inconvenience
Dynamic SQL Maintenance
Cleaning House
Login and User Usage
Auditing Users and Logins
Memory Consumption
Row Level Security
Signing Stored Procedures
Conclusion
Chapter 5: Managing Scope
What Is Scope?
Why Is Scope Important?
Managing Scope in Dynamic SQL
Using OUTPUT in Dynamic SQL
Table Variables and Temporary Tables
Table Variables
Temporary Tables
Global Temporary Tables
Using Permanent Tables for Temporary Storage
Output Data Directly to a Table from Dynamic SQL
Conclusion
Cleanup
Chapter 6: Performance Optimization
Query Execution
Parsing
Binding
Optimization
Execution
Optimization Tools
Query Execution Plan
STATISTICS IO
Object
Scan Count
Logical Reads
Physical Reads
STATISTICS TIME
Use All of These Tools!
Dynamic SQL vs. Standard SQL
Query Parsing and Binding
Execution Plan Caching
Simplifying Queries
Paging Performance
Filtered Indexes
Cardinality
Statistics
Sys.dm_db_stats_properties
Trace Flag 2371
Back to Dynamic SQL
Query Hints
Conclusion
Cleanup
Chapter 7: Scalable Dynamic Lists
What Is a Dynamic List?
Using XML to Create a Dynamic List
Set-Based String Building
Revisiting Security
STRING_AGG
Conclusion
Chapter 8: Parameter Sniffing
What Is Parameter Sniffing?
Parameter Sniffing Examples
Identifying Parameter Sniffing
Design Considerations
Query Execution Details
The Red Herrings
Parameter Values
Local Variables
Forcing Cardinalities to the Optimizer
Dynamic SQL
Trace Flag 4136
Fix Bad Business Logic
Too Many Possible Code Paths
Lots of Parameters
Stored Procedure is Huge
Conclusion
Cleanup
Chapter 9: Dynamic Pivot and Unpivot
PIVOT
UNPIVOT
Additional Examples
Multiple PIVOT Operators
Multiple UNPIVOT Operators
Classification Using PIVOT and CASE
Conclusion
Chapter 10: Solving Common Problems
Collation Conflicts
The Problem
The Solution
Organizing and Archiving Data
The Problem
The Solution
Customized Database Objects
The Problem
The Solution
A Note on System Tables
Conclusion
Chapter 11: Applications of Dynamic SQL
Database Backups
Saving Generated Scripts
Saving Scripts to a Table
Executing TSQL on Other Servers
Generating Schema from Metadata
Building a Solution
Conclusion
Chapter 12: Index Usage and Maintenance
Index Defragmentation
Index Rebuild
Index Reorganization
Creating an Index Maintenance Solution
Index Usage Statistics
Missing Index Statistics
Conclusion
Index
توضیحاتی در مورد کتاب به زبان اصلی :
Take a deep dive into the many uses of dynamic SQL in Microsoft SQL Server. This edition has been updated to use the newest features in SQL Server 2016 and SQL Server 2017 as well as incorporating the changing landscape of analytics and database administration. Code examples have been updated with new system objects and functions to improve efficiency and maintainability.
Executing dynamic SQL is key to large-scale searching based on user-entered criteria. Dynamic SQL can generate lists of values and even code with minimal impact on performance. Dynamic SQL enables dynamic pivoting of data for business intelligence solutions as well as customizing of database objects. Yet dynamic SQL is feared by many due to concerns over SQL injection or code maintainability.
Dynamic SQL: Applications, Performance, and Security in Microsoft SQL Serverhelps you bring the productivity and user-satisfaction of flexible and responsive applications to your organization safely and securely. Your organization's increased ability to respond to rapidly changing business scenarios will build competitive advantage in an increasingly crowded and competitive global marketplace. With a focus on new applications and modern database architecture, this edition illustrates that dynamic SQL continues to evolve and be a valuable tool for administration, performance optimization, and analytics.
What You'ill Learn
Build flexible applications that respond to changing business needs
Take advantage of creative, innovative, and productive uses of dynamic SQL
Know about SQL injection and be confident in your defenses against it
Address performance concerns in stored procedures and dynamic SQL
Troubleshoot and debug dynamic SQL to ensure correct results
Automate your administration of features within SQL Server
Who This Book is For
Developers and database administrators looking to hone and build their T-SQL coding skills. The book is ideal for developers wanting to plumb the depths of application flexibility and troubleshoot performance issues involving dynamic SQL. The book is also ideal for programmers wanting to learn what dynamic SQL is about and how it can help them deliver competitive advantage to their organizations.