SQL Advisor for SMBs

A resource center for companies investigating SQL Server.

Home | Spec Sheets | Solution Advisor ToolHow to Purchase

Articles


Data Conversion in SSIS

Data conversion transformation or derived column transformation? It depends and you've also got other options.

What To Watch For When Troubleshooting

Performance lagging on the SQL Server? Back to troubleshooting basics.

The Double-Hop Authentication Problem

A known issue in SQL Server's Reporting Services can be avoided or be less painful to deal with using this week's trick.

Working with Text Data Sources

SSIS won't recognize it's working with a flat file, so you'll need to manually prod it to do your bidding. Here's how.

Forgotten SQL Servers -- Project Server

Project Server. Remember installing it? Well, your Project guys will remind you once in a while that it's something to keep abreast of.

Pivot Tables Transformed To Work with SSIS

You can work with pivoted data in SSIS package, as if it were just another data set. But it requires the Pivot transformation and jumping a few hoops to get there.

Forgotten, Not Gone -- Team Foundation Server

It can't be too easy to forget TFS, as you've likely been heavily involved with installing it. What? You didn't help? Well, you'll need to keep in mind these tips for maintenance.

Who's Minding the SharePoint Servers?

Let's not ignore some of those SQL Server instances that have been put into place. First up: what you need to remember about SharePoint.

Calling Child Packages in SSIS

Use variable is calling child packages that need to pass info back to the parent package. Here's how.

T-SQL Tips -- GO # and WHILE Loops

Two quick tricks: populating a table with data quickly, and boosting performance with WHILE loops.

The Logic of IF...THEN

Need the simplicity of the IF...THEN statement in your SSIS packages? It can be done.

SQL Server's Extended Protection

R2 has a nifty feature called Extended Protection for Authentication. What? You've never heard of it? Check this out...

Log Shipping and Logins

Establishing a failover server for your SQL Server? First things, first: strategize on your logins.

64-Bit SSIS and 32-Bit Excel

Importing data from Excel to SQL Server requires going back in time, so to speak. Yes, back to 32-bits at runtime.

Common SQL Security Scenarios

Security plans can change depening on whether you're looking to implement in an SMB, multi-server, or enterprise environment.

DTS in SQL Server 2008

Long live Data Transformation Services! It's there if you're still working out issues with SSIS. Just don't expect DTS to be available by default.

All About Encryption

In this ongoing series on SQL security, we discern the differences between in-flight encryption and data at rest encryption.

SQL Extras: SQL Server Security In-Depth: Applications

A tale of two levels of security access.

Rollin' with the FTP Task Flow

Rolling a script to perform the FTP functions will allow you more flexibility than the built-in task and more productivity.

Using the FTP Task in an SSIS Package

Pulling data from different sources is easy. One of the easiest is via the FTP Task.

SQL Server Security In-Depth: Users and Developers

Users and developers access SQL Server for completely different reasons. So, be sure you set up access as defined by who they are and why they need access.

Database Maintenance Tasks in SSIS

Tools for keeping your SQL indexes in check.

SQL Server Security In-Depth: System Administrators

Let's take a good look at SQL Server security, R2-style.

Working with SSIS Variables in Script Tasks

You'll wonder no more how to manipulate SSIS Package Variables via Script Tasks, once you're done reading this little tidbit.

T-SQL Smarts -- Preventing Injection Attacks

Working with dynamic SQL is all well and good, but avoid the risks that can lead to your code being susceptible to a SQL injection attack.

SSIS: Conditional Split

Getting to know a transformation that allows you to split the data in more ways than one.

T-SQL Smarts: Executing Sp_executesql

In this third in a series on working smarter with T-SQL, let's give the built-in sp_executesql stored proc a go.

Logging Error Rows with SQL Server SSIS

Don't let an error message or two stop you from getting what you need. Here's a quick trick to keep things running.

Smarter T-SQL: Generate, Then Execute

In part 1, we looked at generating T-SQL style code. In part 2, let's get this thing to run!

Code Generation, T-SQL Style

Making your T-SQL work smarter for you by having it work as a code generator. Part 1 in a series.

SAN 101 for the DBA

Two is always better than one, and that's even more true when you're talking about setting up storage for SQL Servers on a SAN.

Common Table Expressions Give Temporary Relief

Working with temporary result sets? Use CTEs to cut to the chase.

Statistically Speaking

Retrieve index statistics using the sys.dm_db_index_physical_stats function.

Try Catching These Errors

The TRY...CATCH syntax offers more error-catching elegance than GOTO statements.

Making Your T-SQL Work Smarter: sp_MSforeachdb

Last time, we showed how to take advantage of a built-in stored to run a command against multiple tables. This time, we look at another for working against a bunch of databases.

Why Upgrading to SQL Server 2008 R2 Is Not a Given

You might be running a version of SQL Server that is perfectly suited to your company. Here's a quick look at the pros and cons of upgrading now.

Pivots Turn Ugly to Pretty

Here's a cool way to look at data, formatted using simple T-SQL PIVOT syntax.

Getting Dynamic in SSIS Queries

When you start working with SQL Server and SSIS, it won't be long before you find yourself wishing you could change bits of SQL queries dynamically.

R2's Feature Packs

With the imminent release of SQL Server 2008 R2, there are new executables as well as updated versions of existing executables for your environment.

What's So Cool About the SQL Server Utility?

Well, in version R2, the tool offers a new way of looking at managing your server databases. Here's what you'll drool over.

Inside R2's Datacenter, Parallel DW Editions

Lots of data processing requires superpowers. These editions of SQL Server can deliver it.

SQL Server 2008 R2's Extended Management Features

Much improved is the lock hashing algorithm and installation this time out.

Worthwhile T-SQL Additions

Compound operators offer coding shortcuts, while the INSERT statement lets you ask for rows of data without wearing out the keyboard.

Simple-Minded Syntax

SQL Server 2008's EXCEPT and INTERSECT can produce filtered results that require almost no brain power.

The Power of Merge

MERGE is one of the more powerful statements in the T-SQL repertoire.

SQL Server 2008 R2: New Manageability Features

Here's a quick look at the improvements to the R2 release that I think will be useful come the May release date.

Customizing PowerShell for SQL Server

To wrap up this series of PowerShell articles, let's take a look at a few tips and tricks for working with PowerShell in SQL Server on a regular basis.

Script Data in SQL Server 2008

Use the Generate Script function in SSMS to automate the population of data into some SQL statements.

The Trouble with SSIS Sorting

Sort it all out, but sort it the right or there'll be trouble, of a sort.

Under the Hood of the SQL Server PowerShell Provider

The nodes know. Use SQLPS.exe and a few cmdlets to find out what the nodes know.

Using PowerShell to Automate Database Restores

You've automated the SQL database backup process; now, let's restore in auto mode. Here's how to do it with PowerShell.

Troubleshooting a Failed Maintenance Plan

Pair up a Profiler trace with the User Error Message and Exception events, and problems will reveal themselves quickly.

Saving Space with SQL Compressed Backups

No need to turn anywhere besides SQL Server 2008 to compress backups.

Automated Backups That Rock the SQL

PowerShell takes a mundane task like SQL backups and automates it.

Scheduling with the SQL Server Agent

Powershell can schedule it for you! Just script something against the SQL Server Agent to get automated now.

Application Roles: What Are They, Really?

Application Roles offer a better, more secure way for users to gain access to SQL Server data. Here's why.

SSIS Package Builds

Jump the gun on your SSIS packages and you'll be doing one crucial thing wrong. Let's step through the process.

Automating Policies Management, Part 2

A few practical examples on setting up policies. This time, we PowerShell it.

A Level of Protection

Understanding how the ProtectionLevel property works will give you a level of comfort in protecting your SSIS packages.

Automating SQL Server Policies Management

Create business-specific configurations on your SQL Servers with PowerShell. Yes, that easy.

Looping Through Rows in a Table

Put your left foot in, then your left foot out... Yeah, writing loops to iterate over rows in a table is kinda like that.

Managing Server Config Data, And Then Some

We used PowerShell to get information on a single server. This time, how to get info on several of your servers.

Working with SSIS Expressions

Expressions can work with you or against you. Here's an example that makes perfect sense.

Lookup Before You Cache

The Cache Transformation allows you to build up your lookup cache before you need it, saving you a step or two in the process.

Managing Server Config Data

You have the basic script-building skills, so let's build a script that retrieves and stores SQL Server configuration data.

SSIS's New Look Lookup

Let's look at the much-improved Lookup transformation feature in version 2008.

Creating PowerShell Scripts

Now that you know what power lies in PowerShell, let's write a simple script to get some info on some SQL services.

Packaging Deal

Use SQL Server Integration Services for a quick way to package up the settings on your database servers.

Querying Your SQL Servers

Now for the real work to begin: How to use PowerShell to get the right information on your SQL Servers. It's via the Get-Service cmdlet.

Installing PowerShell

Many DBAs have heard about the scripting technology from Microsoft, but have yet to really dive right in.

Good Data from Data Profiling Task

Get some real useful information from SQL Server Integration Services' Data Profiling Task feature.

Microsoft Unveils Data Warehouse SQL Server Solutions

Microsoft and its hardware partners roll out preconfigured data warehouse reference architectures that incorporate Microsoft SQL Server 2008.

A Fix for Database Orphans

A common problem when restoring databases is making orphans of users. Here's a quick solution.