THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Andy Leonard

Andy Leonard is a Data Philosopher at Enterprise Data & Analytics, an SSIS Trainer, Consultant, developer of the Data Integration Lifecycle Management (DILM) Suite, a Business Intelligence Markup Language (Biml) developer and BimlHero; SQL Server database and data warehouse developer, community mentor, engineer, and farmer. He is a co-author of SQL Server Integration Services Design Patterns, and the Stairway to Integration Services. Keep up with Andy, join his mailing list!

SSIS Snack: Data Preview

Introduction

An easy-to-overlook function in an OLE DB Source adapter is the Preview button.

Dummy Data

To tinker with the Preview button, let's first create some dummy data in a Data Flow Task. There are a couple ways to create dummy data in a Data Flow, one way is to use an OLE DB Source. Drag it onto the data flow canvas and open the editor. Select (or create) a Connection Manager and set the Data Access Mode to "SQL command". Enter the following T-SQL statement:

Select 'A' as [Group], 112 as [Number]
union all
Select 'B', 219
union all
Select 'A', 111
union all
Select 'C', 311
union all
Select 'A', 117
union all
Select 'B', 211

Now that we have some dummy data, click the Preview button to get a look at a sample of the data returned - up to 200 rows:

This is some cool functionality - especially when I'm creating aggregates or invoking some Case logic.

:{> Andy

Published Wednesday, March 03, 2010 8:00 AM by andyleonard
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(required) 
Submit

This Blog

Syndication

News

My Latest Book:

Community Awards



Friend of Red Gate

Contact Me

Archives

Privacy Statement