Solved

SSIS 2008 - Viewing Variable Values at Runtime

Posted on 2014-04-25
4
372 Views
Last Modified: 2016-02-10
Hi,

I am very new to all this.

I followed this link:
http://agilebi.com/jwelch/2009/11/29/ssis-101-viewing-variable-values-at-runtime/

I disabled the task within the package that I did not want included.

My question is how do you read this?
I am trying to understand
Why does it not show the values of what is being passed?

Please look at my snapshot.

Thanks
SnapshotViewVariables.docx
0
Comment
Question by:Amour22015
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:ProjectChampion
ID: 40022821
It looks perfectly fine! The first parameter User:FileIDS looks like it's received the ResultSet of the Execute SQL Task (GetFileID FromDtabase) fine. Of course it's an object so you don't see the actual result set but you can examine it further by expanding the variable (click on the plus sign) to see for instance the row-count etc.

The second parameter User::FileID doesn't show any value because it's used in the context of your Foreach Loop Container, so although it's accessible at the package level, but it won't be set until the first iteration of your loop is completed.

Hope that makes sense.
0
 

Author Comment

by:Amour22015
ID: 40022905
Ok,

If I copy the SQLStatement in the Execute SQL Task (GetFileID FromDtabase) to: SQL Server using Query

I can see that there are 3 with a 36 count = 108 records

Why I can not see that when I do this view variables?

I am selecting
Set Breakpoints:
Break when the container receives the OnPostExecute event

Is that the wrong event?
I am just trying to understand better

Thanks
0
 
LVL 8

Accepted Solution

by:
ProjectChampion earned 250 total points
ID: 40022937
No you're not doing anything wrong. The only thing is that in order to access individual rows in your result set you need to iterate through the set row-by-row. That's where the loop container comes into play. You can verify each FileID in each row by binding the User::FileID to the first column of your result set (index 0) within the loop container and and set a break point at entry to each iteration of the loop container.
0
 

Author Closing Comment

by:Amour22015
ID: 40022945
Great thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with convert Informix SQL SELECT statement to Microsoft SQL 1 25
the way to learn Microsoft BI 13 46
SQL Syntax 6 30
SQL query 7 15
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question