Solved

SSIS Execute SQL Task with Recordset GUID Variable

Posted on 2013-06-28
1
879 Views
Last Modified: 2016-02-11
Guys and girls... I've got one that I'm currently banging my head on.

I have an SSIS package within Visual Studio. I'm pulling data from a SQL server to a recordset in the DataFlow and then in the Control Flow I'm taking that DataFlow and pointing it to a Execute SQL Task.

The only data I'm pulling is a GUID using a SQL query in an OLE DB Source. From a watchtable I can see that the single GUID (I've narrowed my query down to just one) is getting properly transfered into the recordset.

I have two variables throughout the package (EntityID & rsDetails) with EntityID being my GUID. EntityID is a string and rsDetails is an Object.

The data flow appears to be working great.

On the control flow I'm taking my data flow output and putting it into an Execute SQL Task which runs a stored procedure. I'm using my mapped variable of User::EntityID in my stored procedure. I'm stating that User::EntityID is a GUID with parameter size of 36.

When I debug and run the package, everything goes green. The data does not show up correctly and essential my GUID is NULL.

If I run SQL Profiler while the package is running I can see where the stored procedure runs and where the GUID should be but it is completely blank. I just see two single apostrophe marks next to each other with the GUID missing.
0
Comment
Question by:LeifHurst
1 Comment
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
Comment Utility
hi

read this for how to use guid in ssis
http://blog.wharton.com.au/2011/06/28/fun-with-ssis-and-guids/
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

My client has a dictionary table. They're defining a list of standard naming convention. Now, they are requiring my team to provide us a mechanism how to match new incoming data with existing data in their system.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now