SQL Server Performance Tuning

Speed Up SELECT DISTINCT Queries

Many people use the DISTINCT option in a SELECT statement to filter out duplicate results from a query’s output. Take this simple PUBS database query as an example:SELECT DISTINCTau_fname,au_lnameFROM authorsIn a simple SELECT from one table (like the one above) this is the easiest and quickest way of doing things.However, with a more complex query […]

Eliminate the Use of Temporary Tables For HUGE Performance Gains

As queries become more complex, temporary tables are used more and more. While temporary table may sometimes be unavoidable, they can often be sidestepped by using derived tables instead. In brief, a derived table is the result of using another SELECT statement in the FROM clause of a SELECT statement. By using derived tables instead of […]

Not All SQL Server Indexes Are Created Equal

If you have much experience with indexes at all, you are probably already familiar with the difference between clustered and non-clustered indexes. But this article is not about them. This article is about whether or not the SQL Server Query Optimizer will use your carefully crafted indexes. You may not be aware of this, but […]

Getting The Best From The SQL Server Index Tuning Wizard

The Index Tuning Wizard is a handy tool shipped as part of the SQL Server 7.0 and SQL Server 2000 Profiler that can analyze a set of SQL queries and suggest index changes that could improve their performance. Here, I will take a look at how to get the best results out of using the […]

The Importance of E-Commerce, DSS and OLTP Database End-User Service Level Analysis

This is an interesting article from the president of SQL Power Tools, which produces tools for SQL Server (and other databases) that can be used to measure database end-user service levels. If you don’t know what an end-user database service level is, then you need to read this article. Before reading this article, I was […]

Using XML To Supercharge Website Performance

With the advent of XML, we have the ability to supercharge our websites with huge performance increases. XML allows us to separate code, content, and presentation. Web developers now have three separate files which in turn will create the HTML that we output. Since the content is in a distinct file separate from the code […]

SQL Server Full Text Search Optimization

Full text indexing is a great feature that solves a long running database problem, the searching of textual data columns for specific words and phrases in SQL Server databases. However, as the full-text search engine is a separate component of SQL Server (it uses the Microsoft Search Service) this can be a potential performance problem […]

Use OPENXML to Minimize SQL Server Database Calls

OPENXML is a new function added to SQL Server 2000 that provides a rowset view over an XML document. Since a rowset is simply a set of rows that contain columns of data, OPENXML is the function that allows an XML document to be treated in the familiar relational database format. It allows for the […]

Avoiding Bottlenecks with Temporary Tables

Overview Were you aware that the act of populating a SQL Server temporary table can cause system-wide performance bottlenecks on your server? Problems can occur both with SQL Server 6.5 and 7.0 in different ways, and in this article I will discuss how best to avoid them. Bottlenecks in SQL Server 6.5 Many people use […]

StrCat.Catter – An Efficient String Concatenation Component

I wrote the COM component – StrCat.Catter – because string concatenation in VBscript has poor performance characteristics. I found that code like this:<%Dim rsSet rs = ExecuteSql(“SELECT Username FROM Users ORDER BY Username”)Dim some_strsome_str = “”do until rs.EOFsome_str = some_str & rs(0) & “<br>” & vbCrLfrs.MoveNextloopResponse.Write some_str%>performed very poorly. The code took a long time […]
Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |