DMBI

Mar 07 2010

SQL Server Performance tuning with ODBC and JDBC applications

This article assumes that you already have an optimal data model along with the most efficient data tier in your application.  You’ve spent plenty of time optimizing indexes, poring over the SQL explain plans, and tuning the SQL queries that your application uses to retrieve data from your SQL Server database.  The application has been running fairly smoothly, performance isn’t great but has been acceptable to the end users.

At some point, due to application load from the users, data volume, or other external variables, you notice that the queries you optimized utilizing the Management Studio’s estimated explain plan do not perform as expected. 

Let’s take a look at the table we’ll be querying.  We’re using the VARCHAR data type to store all string data in our database.

 

Read More

Mar 04 2010

Why use the native Unpivot transformation?

In my last post, I covered how to use an unpivot transformation in SSIS.  There are, however, at least two other ways the same output can be achieved.  In addition to the built in transformation, a multicast into a union all or a script task can be used.  While all three methods produce the same dataset, the latter two are slower and one is much less efficient than the native transformation.   If you are interested in each of the three methods, continue reading; otherwise, you can jump to the results. 

Read More

Jan 26 2010

Unpivot in SQL Server Integration Services (SSIS)

 

When importing data from a flat file into a database it is not uncommon to be presented with a source that has repeating data sets.  This data isn't normalized and usually needs to be split into a single row for each repeating group.  Moving multiple matching sets of columns into rows can easily be done using the Unpivot transformation in SQL Server Integration Services (SSIS).  For example, the following data is presented containing 2 columns that apply to every field (Date and Type), followed by 5 groups of 3 columns (Salesperson, Sales and Units).

Read More

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.