Posts

Showing posts from June 11, 2023

Performance tuning

    Some of the key points I learned  Understanding the execution plan: Analyzing the execution plan is crucial to identify potential bottlenecks and inefficiencies in the query. It provides insights into the sequence of operations and helps pinpoint areas for optimization. Examining the execution time of each operator: By evaluating the time taken by individual operators in the execution plan, we can identify the specific steps causing performance degradation and focus our efforts accordingly. Considering the impact of functions:  significance of functions in query performance. Evaluating their execution and considering factors like maxdop (parallelism) can greatly impact overall query speed. Exploring compatibility modes : Being aware of compatibility modes and their associated features, especially advancements like UDF inlining in SQL Server 2019, allows us to leverage the latest capabilities for improved performance. Assessing inlineable sys modules: Understanding

Proactive and Reactive Monitoring for SQL Servers: Ensuring Optimal Performance and Issue Resolution

Monitoring SQL servers is crucial for maintaining their performance, availability, and security. By implementing proactive and reactive monitoring measures, you can anticipate and address potential issues before they occur and quickly resolve problems that arise. In this blog post, we will explore the concepts of proactive and reactive monitoring for SQL servers and provide examples of each. Proactive Monitoring Measures: Proactive monitoring involves preventive actions to maintain the health and performance of SQL servers. Let's dive into some examples of proactive measures: Performance Monitoring: Example: Utilize a SQL server monitoring tool like SQL Server Profiler or Performance Monitor to track key performance indicators (KPIs) such as CPU usage, memory utilization, and disk I/O. Set up alerts and thresholds to be notified when predefined limits are exceeded. For instance, if CPU usage consistently exceeds 80%, an alert can be triggered to investigate potential performance bo

Understanding SQL Server Patching: GDR versus CU

Introduction: Are you curious about the distinctions between GDR and CU when Microsoft releases a KB article with new fixes or security updates? In this article, we'll delve into the details and provide some helpful tips along the way. Setting the Stage : GDR versus CU: Let's begin by understanding Microsoft's explanation: Microsoft defines the General Distribution Release (GDR) and Cumulative Update (CU) designations as two different servicing options for SQL Server baseline releases, which can be either an RTM release or a Service Pack release. Determining the Baseline: To determine your SQL Server's baseline version, you can use various methods. One way is by executing the following T-SQL code: SELECT @@VERSION; Alternatively, you can check the version by examining the sqlserver.exe file in the corresponding \Binn directory of your installation. Another option is using the SERVERPROPERTY() function for more detailed version information, but that is beyond the scope