Some tips to use System Monitor with SQL Server 2012 Don’t monitor counters you don’t need. The more counters you monitor, the more overhead that is required to perform the monitoring. So, to boost the System Monitor performance, you should monitor only those counters that you need. Stop all screen-saver and anti-virus programs on a computer you run System Monitor....
Tag: tune
Tips for using indexes in SQL Server 2012
Tips for using indexes in SQL Server 2012 Keep your indexes as narrow as possible. Because each index takes disk space try to minimize the index key’s size to avoid using superfluous disk space. This reduces the number of reads required to read the index and boost overall index performance. Check that index you tried to create does not already...
Tips for designing SQL Server 2012 tables
Tips for designing SQL Server 2012 tables Try to reduce the number of columns in a table. The fewer the number of columns in a table, the less space the table will use, since more rows will fit on a single data page, and less I/O overhead will be required to access the table’s data. Use char/varchar columns instead of...
Tips for using ASP.NET with SQL Server 2012
Tips for using ASP.NET with SQL Server 2012 Try to avoid using ADO methods to access SQL Server data in your ASP. Use SQL Server 2012 stored procedures instead of ADO methods. By doing so, you can reduce network traffic and boost overall ASP.NET performance. If you use ADO to access SQL Server data in your ASP.NET, try to avoid...
SQL Server 2012 Clustering Optimization Tips
SQL Server 2012 Clustering Optimization Tips You can use cross-cluster migration of AlwaysOn Availability Groups for OS upgrade. SQL Server 2012 service pack 1 introduces support for cross-cluster migration of AlwaysOn Availability Groups for deployments to a new Windows Server Failover Clustering cluster. A cross-cluster migration moves one AlwaysOn availability group to the new destination Windows Server Failover Clustering cluster...
Tips for using SQL Server 2012 Query Hints
Tips for using SQL Server 2012 Query Hints If your query is very slow, try the following before using query hints: – rebuild indexes used in the query (or defragment them using DBCC INDEXDEFRAG), – update statistics on the relevant tables, – consider creating new indexes for this query, – rewrite your query to provide better execution plan. Use the...
Tips for using SQL Server 2012 Snapshot Replication
Tips for using SQL Server 2012 Snapshot Replication SQL Server 2012 introduces AlwaysOn Availability Groups. This is a high-availability and disaster-recovery solution that provides an enterprise-level alternative to database mirroring. AlwaysOn Availability Groups maximizes the availability of a set of user databases for an enterprise and supports a failover environment for a discrete set of user databases, known as availability...
Tips for using SQL Server 2012 constraints
Tips for using SQL Server 2012 constraints Try to create a single column constraint. The more columns the constraint will have, the slowly it will work and the more stored space it will require. Use cascading referential integrity constraints instead of triggers whenever possible. For example, if you need to make cascading deletes or updates, specify the ON DELETE or...
Tips for using SQL Server 2012 triggers
Tips for using SQL Server 2012 triggers Microsoft SQL Server 2012 introduces many new useful stored procedures, functions and operators. Some actions you can perform without these new features, but usually using them provides more easy and effective way to accomplish the same goal. In this article, you can find some tips to use triggers in SQL Server 2012. Try...
Tips for using SQL Server 2008 R2 database settings
Tips for using SQL Server 2008 R2 database settings To change the database settings, you can use the sp_dboption system stored procedure or you can use the graphical user interface (GUI). To change the database settings using GUI, you can do the following: – In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand...