Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using Business Intelligence Development Studio (BIDS)

From: SQL Server 2008 Essential Training

Video: Using Business Intelligence Development Studio (BIDS)

To work with SQL Server Integration Services we're going to open a new program. Well, for some of you it might not be that new. I'm opening up my SQL Server 2008 R2 applications. I'm looking for SQL Server Business Intelligence Development Studio, sometimes known as BIDS. But when I open this up, it's really not a completely new application. As I can see here it's actually Visual Studio. In fact Business Intelligence Development Studio is just a cut-down version of Visual Studio.

Using Business Intelligence Development Studio (BIDS)

To work with SQL Server Integration Services we're going to open a new program. Well, for some of you it might not be that new. I'm opening up my SQL Server 2008 R2 applications. I'm looking for SQL Server Business Intelligence Development Studio, sometimes known as BIDS. But when I open this up, it's really not a completely new application. As I can see here it's actually Visual Studio. In fact Business Intelligence Development Studio is just a cut-down version of Visual Studio.

If you have the full version of Visual Studio, every time you go to File > New > Project you might have dozens of choices to choose from, but here we only have a handful. We have a couple of Analysis Services Projects, we have a couple of specialized Reporting Services Projects and then the Integration Services one, and that's what I need to do. So I've gone into my File > New > Project and I'm going to create a sample here. I'll call it SSISTest and just accept the default location.

So this is creating a full Visual Studio project with a lot of subfolders and support files and this is what we get. And that can look little bit intimidating particularly if you're new to Visual Studio. And even if you're not this is certainly not a classic ASP.NET environment,. It's something very different, very visual. Inside this package and that's what we're working on a Package.dtsx file, we've got four tabs here, Control Flow, Data Flow, Event Handlers, Package Explorer. Well what are we actually doing here? Well this is all about taking in some data, performing some transformations on it, moving it somewhere else, copying it, merging it, exporting it.

And to do that we have a fairly significant toolbox. I'm going to pin my toolbox here just to show you this, but what you'll find is if you have the Control Flow tab highlighted we have all sorts of control flow items, dozens of them, things like Send an Email Task, do something with FTP Task, do something on the File System, Execute some SQL, Execute a Process. Down below that we have what are called Maintenance Plan Tasks, things like Check the Integrity of the Database, always a good idea if you're moving a lot of content from one place to another.

History Cleanup, Notify Operator Task , sending an e-mail message to a SQL Server Agent Operator, Rebuild an Index, Reorganize an Index, lots of stuff that you can build and plan for doing some substantial work with moving data around. And the idea is that what you do is you start to drag on the things that you want to do onto the Designer. So if you wanted to start off with a Check Database Integrity Task we drag that on there. It adds it visually. Now of course, it doesn't know which database we're actually talking about here.

So to configure this I could either select it and start to play around with the Properties, or I can just double- click it and it's going to kind of step me through the idea that it doesn't know what database to check so it's asking for a connection. What connection do I use? If I do where to find one they will be one in the drop-down, but we didn't. So I'll describe a connection to AdventureWorksLight (AWLT). It's going to be the dot, which is fine, and yes it's Windows Integrated Security. When I do that it says, well select a database please. I can say all databases.

Do I want to check the integrity of everything, just system databases, user databases, or these following databases? It allows me to select through them. I'm going to say set this one. Click OK. I could even view the T-SQL. Now surprisingly, what this is generating is a DBCC CHECKDB. So if that completes successfully, we could go onto the next task. Maybe at this point what I want to do is grab something from the file system, or send an email.

Perhaps notifying people that we're about to start a big SQL Server Integration Services package, but really the big task, the big important one doesn't look like it's that important, but it's this one, the Data Flow Task. The idea is that all of your packages at some point do data flow. They take data from one place and move it somewhere else. And in fact you could have a SSIS package that is just one Data Flow task, so I have deleted that first one that checks the database integrity.

And here is what happens when you drag this on and you double-click it, it's going to jump you to the second tab. We're basically jumping inside of that Data Flow task where we get to describe exactly what's happening just in that little piece of the flow. And if you notice what happens is your toolbox changes. We switch from things like FTP tasks and Email tasks to Data Flow sources of Excel, and flat files, and raw files, and Data Flow tasks. We can do things like character mapping to change things to lowercase or uppercase, data conversion, moving things from integers to floating points and back again.

We can lookup some other piece of data. We can do a row count. If you have the Enterprise level editions of SQL Server we can even do things like Fuzzy Lookup and Fuzzy Grouping to have very flexible questions that we're asking about our data. And then we end up with Data Flow Destinations. That's the whole point. If something is flowing it's flowing from somewhere to somewhere. So what's the destination? Now are we moving from a flat file into SQL Server, are we moving from SQL Server into an OLE DB database? What are we doing with it? And the benefit of defining all these is that at every step of the way whether choosing to for example start off with the flat file, then do some character mapping of it, sorting that information, and then outputting it into for example SQL Server, we can configure each step of the way.

We have the two arrows, the green one representing what happens if the output of that was successful and the red one representing what happens if it wasn't. So in this case we can just click on the steps and define them by double-clicking each part and setting up, or what is that input flat file, how would SQL Server Integration Services find it, how does it know where to look? What kind of mapping would we do on it? What would we convert to uppercase? What would we convert to lowercase? What are we sorting on? And then where does it go? As you can imagine, SQL Server Integration Services packages can get very complex indeed, the great thing about doing them in this environment is you even get a built-in debugger that allows you to take them visually step-by-step through each part and we'll see a simple example of that next.

Show transcript

This video is part of

Image for SQL Server 2008 Essential Training
SQL Server 2008 Essential Training

74 video lessons · 38043 viewers

Simon Allardice
Author

 
Expand all | Collapse all
  1. 2m 21s
    1. Welcome
      1m 19s
    2. Using the exercise files
      1m 2s
  2. 17m 58s
    1. SQL Server core concepts
      9m 4s
    2. SQL Server editions
      3m 8s
    3. Applications included with SQL Server
      5m 46s
  3. 26m 1s
    1. Preparing for installation
      3m 44s
    2. Creating service accounts
      2m 33s
    3. Installing SQL Server
      11m 42s
    4. Post-installation checks
      3m 9s
    5. Installing sample databases
      4m 53s
  4. 13m 35s
    1. Introduction to SQL Server Management Studio
      8m 7s
    2. Introduction to SQL Server Books Online
      3m 6s
    3. SQL Server system databases
      2m 22s
  5. 1h 26m
    1. Planning your database
      9m 39s
    2. Creating a SQL Server database
      4m 7s
    3. Creating tables
      7m 51s
    4. Data types in SQL Server
      12m 25s
    5. Defining keys
      8m 9s
    6. Creating default values
      4m 39s
    7. Creating check constraints
      2m 25s
    8. Creating unique constraints
      4m 34s
    9. Introduction to relationships and foreign keys
      9m 51s
    10. Creating relationships in SQL Server Management Studio
      8m 14s
    11. Database normalization
      11m 47s
    12. Creating computed columns
      3m 10s
  6. 23m 11s
    1. Using the SQL Server Import and Export Wizard
      3m 58s
    2. Importing Excel files into SQL Server
      6m 11s
    3. Importing CSV files into SQL Server
      5m 27s
    4. Importing Access databases into SQL Server
      7m 35s
  7. 55m 29s
    1. Introduction to Transact-SQL
      3m 43s
    2. Using SELECT statements
      7m 16s
    3. Changing the default database
      2m 21s
    4. Creating conditions in SQL
      8m 10s
    5. Sorting your output
      3m 23s
    6. Using aggregate functions
      7m 12s
    7. Finding unique values
      2m 14s
    8. Using subqueries
      9m 33s
    9. Joining multiple tables together
      8m 0s
    10. Viewing execution plans
      3m 37s
  8. 19m 36s
    1. Writing INSERT statements
      5m 47s
    2. Writing UPDATE statements
      4m 38s
    3. Writing DELETE statements
      2m 54s
    4. Using the OUTPUT clause to return inserted keys and GUIDs
      6m 17s
  9. 32m 52s
    1. Introduction to SQL functions
      6m 26s
    2. Using SQL configuration functions
      2m 14s
    3. Using string functions
      7m 26s
    4. Using date functions
      6m 27s
    5. Creating user-defined functions
      10m 19s
  10. 28m 46s
    1. Introduction to stored procedures
      4m 23s
    2. Creating stored procedures
      11m 23s
    3. Introducing transactions
      4m 23s
    4. Creating transactions
      8m 37s
  11. 16m 39s
    1. Understanding and creating indexes
      6m 32s
    2. Monitoring and rebuilding indexes
      6m 0s
    3. Monitoring database size and integrity
      4m 7s
  12. 11m 41s
    1. Creating backups
      4m 21s
    2. Creating differential backups and using backup compression
      3m 40s
    3. Restoring databases
      3m 40s
  13. 17m 40s
    1. Introduction to SQL Server security and permissions
      5m 54s
    2. Adding a Windows user to the database
      5m 7s
    3. Creating SQL Server logins and switching authentication modes
      6m 39s
  14. 36m 41s
    1. Introduction to SQL Server Reporting Services
      2m 52s
    2. Connecting to the Report Manager
      4m 29s
    3. Using Report Builder
      12m 4s
    4. Formatting values in reports
      4m 17s
    5. Adding indicators to reports
      5m 11s
    6. Adding charts to reports
      3m 54s
    7. Working with report security
      3m 54s
  15. 24m 41s
    1. Introduction to SQL Server Integration Services (SSIS)
      1m 57s
    2. Using Business Intelligence Development Studio (BIDS)
      6m 59s
    3. Creating and executing a simple SSIS package
      7m 35s
    4. Importing packages into SQL Server Management Studio
      3m 21s
    5. Scheduling jobs with SQL Server Agent
      4m 49s
  16. 31s
    1. Goodbye
      31s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed SQL Server 2008 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.