{"id":69264,"date":"2021-08-16T04:10:05","date_gmt":"2021-08-16T08:10:05","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/sql-server-database-system-tuning-38\/"},"modified":"2021-08-16T04:10:05","modified_gmt":"2021-08-16T08:10:05","slug":"sql-server-database-system-tuning-38","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=69264","title":{"rendered":"SQL Server Database System Tuning #38"},"content":{"rendered":"<p>Database tuning approach<\/p>\n<ul>\n<li> Proactive approach  <\/li>\n<li> Reactive approach<\/li>\n<\/ul>\n<p>Best Approach: Use a mix of both.<\/p>\n<p>Be aware (collect information) of the followings that may have significant impact on the performance. <br \/>Hardware: Server, Available memory, number of processors, disk subsystems. <\/p>\n<p>Network Infrastructure: Network Cards, Switches, and the rest of your LAN and WAN. <\/p>\n<p>Operating System: Make sure the OpSys is optimally configured for SQL Server. <\/p>\n<p>Database Engine: Know about the SQL Server Architecture and about your operational environments. <\/p>\n<p>Database: Tune database properly <\/p>\n<p>Client Connection: How clients connect to the server <\/p>\n<p>Monitoring and Tuning Hardware: Use Network Monitor Agent, Performance Logs and Alerts, System Monitor, and Task Manager. <\/p>\n<p>System monitor (perfmon.exe) is a great tool for the purpose Using perfmon.exe you can also find where the bottleneck is Processor Subsystem, Memory Subsystem, I\/O Subsystem <\/p>\n<p><b>Monitoring and Tuning SQL Server:<\/b><b>Tools:<\/b><\/p>\n<ul>\n<li> DBCC Commands <\/li>\n<li> Dynamic Management Views <\/li>\n<li> SQL Server Profiler <\/li>\n<li> SQL Server Management Studio <\/li>\n<li> System Stored Procedures <\/li>\n<li> SQL Trace<\/li>\n<\/ul>\n<p>System Monitor: when SQL server is installed many new parameters (performance objects and their counters) are added to System Monitor (perfmon.exe) that help to monitor SQL Server performance.<\/p>\n<p>SQL Server Profiler: This tool is used to capture traces like client activities, stored procedure calls, lock activities. SQL server profiler can help to determine if the  client application is at fault. <\/p>\n<p>SQL Trace: create traces using using stored procedures.<\/p>\n<p><b>Tuning the tempdb system database<\/b><\/p>\n<ul>\n<li> Capacity plan and pre-allocate adequate space  <\/li>\n<li> Separate the log file from the database file  <\/li>\n<li> Use multiple secondary files for the tempDB system database <\/li>\n<li> Use a faster disk <\/li>\n<li> Use an appropriate RAID solution. <\/li>\n<li> Use local disk sybsystem for tempdb.<\/li>\n<\/ul>\n<p><b>Tuning Database Layout<\/b><\/p>\n<p>Use file and filegroup architecture properly.<br \/>File: Use multiple data files for your databases.<\/p>\n<p>Filegroups:example: create two file groups and place them in different drives. Create tables in one file group and create non-clustered indexes in the other. table I\/O and Index I\/O are now divided.<\/p>\n<p>From: http:\/\/sitestree.com\/?p=4810<br \/> Categories:38<br \/>Tags:<br \/> Post Data:2012-08-07 00:06:40<\/p>\n<pre><code>    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\"&gt;https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    (Big Data, Cloud, Security, Machine Learning): Courses: &lt;a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"&gt; http:\/\/Training.SitesTree.com&lt;\/a&gt; \n    In Bengali: &lt;a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\"&gt;http:\/\/Bangla.SaLearningSchool.com&lt;\/a&gt;\n    &lt;a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\"&gt;http:\/\/SitesTree.com&lt;\/a&gt;\n    8112223 Canada Inc.\/JustEtc: &lt;a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\"&gt;http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) &lt;\/a&gt;\n    Shop Online: &lt;a href='https:\/\/www.ShopForSoul.com'&gt; https:\/\/www.ShopForSoul.com\/&lt;\/a&gt;\n    Medium: &lt;a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"&gt; https:\/\/medium.com\/@SayedAhmedCanada &lt;\/a&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Database tuning approach Proactive approach Reactive approach Best Approach: Use a mix of both. Be aware (collect information) of the followings that may have significant impact on the performance. Hardware: Server, Available memory, number of processors, disk subsystems. Network Infrastructure: Network Cards, Switches, and the rest of your LAN and WAN. Operating System: Make sure &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=69264\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-69264","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":22515,"url":"http:\/\/bangla.sitestree.com\/?p=22515","url_meta":{"origin":69264,"position":0},"title":"SQL Server performance tuning using Windows Performance Monitor #Root #By Sayed Ahmed #MS SQL Server #SQL Server Reporting","author":"Author-Check- Article-or-Video","date":"March 15, 2021","format":false,"excerpt":"Microsoft SQL Server's performance can be monitored using the system performance and resource monitoring tool as comes with Windows Operating Systems. With that information, you can tune for optimum performance. I found the following resource to be very useful SQL Server performance tuning using Windows Performance Monitor: http:\/\/www.sqlshack.com\/sql-server-performance-tuning-using-windows-performance-monitor\/ You can\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22513,"url":"http:\/\/bangla.sitestree.com\/?p=22513","url_meta":{"origin":69264,"position":1},"title":"SQL Server: Basics of Dynamic Management Views and DBCC Commands #Root #By Sayed Ahmed #MS SQL Server #SQL Server Reporting","author":"Author-Check- Article-or-Video","date":"March 15, 2021","format":false,"excerpt":"Inspired By: Tuning Queries: SQl Server - http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1156&title=Tuning%20Queries:%20SQl%20Server What are these? Dynamic Management Views, and DBCC Commands Dynamic Management Views: \"Dynamic management views and functions return server state information that can be used to monitor the health of a server instance, diagnose problems, and tune performance.\" From: http:\/\/msdn.microsoft.com\/en-us\/library\/ms188754.aspx DBCC Statements:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69262,"url":"http:\/\/bangla.sitestree.com\/?p=69262","url_meta":{"origin":69264,"position":2},"title":"Dynamic Management Views #38","author":"Author-Check- Article-or-Video","date":"August 16, 2021","format":false,"excerpt":"Dynamic Management Views provide ways to analyze database performance and to find the cause behind bad-performing SQL server databases\/instances. Bad performance can be due to: poor design, insufficient memory, poorly configured system, disk bottlenecks, poorly written queries and many othersPreviously Windows System Monitor(perfmon.exe) and SQL server profiler were used to\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70215,"url":"http:\/\/bangla.sitestree.com\/?p=70215","url_meta":{"origin":69264,"position":3},"title":"Must Read: Database Driven Software Development #106","author":"Author-Check- Article-or-Video","date":"August 29, 2021","format":false,"excerpt":"If you are developing database driven applications, you must need to know and clearly understand the following concepts. Yes, you also need to apply them in your design and implementation. If you do not follow proper database design strategies, many complexities will arise, adjusting new requirements may become cumbersome to\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69274,"url":"http:\/\/bangla.sitestree.com\/?p=69274","url_meta":{"origin":69264,"position":4},"title":"SQL Server Short-notes at JustETC #38","author":"Author-Check- Article-or-Video","date":"August 16, 2021","format":false,"excerpt":"How to optimize query response time? How to optimize SQL Server Cursors What are cursors? SQL Server Hints Scalability: SQL Server 2005 Scaling Out Dynamic Management Views SQL Server Database System Tuning SQL Server: Index SQL Server : Backups SQL Server Short-notes at JustEtc SQL Server Short-notes at JustEtc From:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":69272,"url":"http:\/\/bangla.sitestree.com\/?p=69272","url_meta":{"origin":69264,"position":5},"title":"SQL Server Short-notes at JustEtc #38","author":"Author-Check- Article-or-Video","date":"August 16, 2021","format":false,"excerpt":"Query Optimization How to optimize query response time? SQL Server How to optimize SQL Server Cursors What are cursors? SQL Server Hints Scalability: SQL Server 2005 Scaling Out Dynamic Management Views SQL Server Database System Tuning SQL Server: Index SQL Server : Backups From: http:\/\/sitestree.com\/?p=5221 Categories:38Tags: Post Data:2012-10-04 19:57:27 Shop\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69264"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/69264\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69264"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}