Solved

SSIS Execute SQL Task with Recordset GUID Variable

Posted on 2013-06-28
1
941 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
ID: 39287961
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remove () 10 41
Creating a View from a CTE 15 49
When are cursors useful? 8 62
MAC Dreamweaver connect to external MS SQL Server 2 40
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

751 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