Using the CASE expression instead of dynamic SQL in SQL Server
Learn how to use the SQL CASE statement to make dynamic logic decisions for Selects, Updates, Deletes, Order By and more.
Learn how to use the SQL CASE statement to make dynamic logic decisions for Selects, Updates, Deletes, Order By and more.
We are building an Analysis Services cube and trying to understand how to create a time dimension and take advantage of the built-in time intelligence features that provide many useful calculations such as period-to-date, period-over-period growth, etc.
Learn about SSD storage benefits when used with SQL Server.
Installing SQL Server Reporting Services is just the first step in building the foundation for a solid Reporting Services instance. The second step in the process is configuring Reporting Services to conform to the particulars of your environment. These
Indexing a SQL Server database in some respects is considered both an art and a science. Since this is the case, what are some considerations when designing indexes for a new database or an existing one in production? Are these the same types of steps o
SQL Server 2005 has introduced a new replication method called Updateable Subscription Replication which allows data modification at both the publisher and the subscriber(s). An option is also available to queue the data from the subscriber so the subs
This tip covers custom SQL Server index defrag and rebuild procedures to handle fragmentation.
In this article, we look at how to create a SQL Server index that can satisfy multiple queries versus having to create multiple indexes.
We have a number of Oracle stored procedures that we need to execute from an SSIS package. The PL/SQL code is deployed in various Oracle packages. Many of these stored procedures require parameters and we're struggling to find the best way to do this gi
Dealing with NULL values especially when joining tables can become a challenge. Let's take a look at this issue and how this can be resolved.
We typically use the Lookup Data Flow Transform to retrieve the surrogate key for a dimension row based on the natural key in a fact table. While this works well, we occasionally have a situation where a fact table row has a natural key that is not in ou
In our final tip of the fragmentation series we walk through a complete script that will cover almost everything we discussed in the series.
With Microsoft SQL Server 2005 going on three years many of us are in the process of acquiring new hardware and getting new instances up and running. In our company this means a shuffle of some of our Database Services, Reporting Services, and Analysis S
One of the advantages of using SSIS is the ability to dynamically create tasks and variables that can take different elements and manipulate them in code instead of having to hard code the package to do only one task. In a previous tip we looked at how to
We have experimented with the Slowly Changing Dimension (SCD) Data Flow Transformation that is available in the SSIS designer and have found a few issues with it. Our major concern is the use of the OLE DB Command Data Flow Transformation for all updates
I have a SQL Server 2005 instance with Mixed Security Mode, BUILTIN Administrators rights revoked and I have not set up a Dedicated Administrator Connection (DAC) in the SQL Server 2005 Surface Area Configuration tool. I have tasked my Junior DBA with set
In this article we look at how to address fragmentation with rebuilds and reogranization of indexes.
This tip inlcudes a script to help you detect and deal with SQL Server fragmentation.
This article covers how to detect SQL Server fragmentation.
At times I run into application issues when I am unable to perform particular functions in the application that some of my peers are able to complete. I need to be able to quickly and easily understand my permissions in SQL Server. Do you know of an eas
Our business users are very savvy with Microsoft Excel. The issue we struggle with is getting the SQL Server data to them in a streamlined manner. We are familiar with some of your earlier tips related to integrating Microsoft Excel and SQL Server. We
One of the most welcome SQL Server 2005 enhancements over its predecessors is Database Mail. Database Mail is built on the Simple Mail Transfer Protocol (SMTP) as compared to SQL Server 2000 Mail which used a buggy and temperamental MAPI client causing s
In this article learn how to build a dynamic connection to a Microsoft Access database from a SQL Server Integration Services package.
To take advantage of new features in SQL Server make sure you update the database compatibility level after upgrading or migrating a database.