dbTalk Databases Forums  

unable to pass string from proc to SSIS variable - HELP!!!

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss unable to pass string from proc to SSIS variable - HELP!!! in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim
 
Posts: n/a

Default unable to pass string from proc to SSIS variable - HELP!!! - 06-24-2008 , 10:23 PM






I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?



Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM






Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #3  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #5  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #6  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #7  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #8  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #9  
Old   
Todd C
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-03-2008 , 10:14 AM



Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

Quote:
I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
  #10  
Old   
Joan Sants
 
Posts: n/a

Default RE: unable to pass string from proc to SSIS variable - HELP!!! - 07-08-2008 , 08:08 AM



Hi Todd!

I just have the same problem. I call a stored procedure. I assign the value
of a Guid to a varchar(50) variable and at last I perform a SELECT to pass it
to the variable of SSIS. I use an Execute SQL Task and the variable of SSIS
is a string. With integer it works all right, but with varchar(50) there is
no way to make it work. Code of the stored proc is something like this

DECLARE @IDTipoArchivoFotografia varchar(50)

SET @IDTipoArchivoFotografia = NEWID()

SELECT @IDTipoArchivoFotografia AS IDTipoArchivo

and the error
The type of the value being assigned to variable "User::IDTipoArchivo"
differs from the current variable type

thanks,

Joan




"Todd C" wrote:

Quote:
Hello Jim:
Can you tell us what Task you are using to accomplish this? Is it an Execute
SQL Task? What type of connection does it have? OLE DB or ADO.NET?
How are you setting up the Result Set?
--
Todd C

"Jim" wrote:

I am trying to pass a value from a stored proc output variable to a user
variable in SSIS. When I define the variable as integer in both SSIS and the
stored proc, every thing is fine, however, it gives me a data type mismatch
error when I declare the variable as varchar in stored proc and as STRING in
SSIS.

I have tried every other reasonable combination but nothing seems to work.
How can I pass a string from a stored proc to the SSIS variable?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.