Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 How to pass partameter for UDF in SSIS
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

95 Posts

Posted - 07/18/2013 :  19:53:52  Show Profile  Reply with Quote
Hello ....

How do I pass a parameter to udf in SSIS

i tried
Vaibale Inputvar as string

input to function should be datetime

select select count(*) from dbo.udffunction(?) in execute task

parameter mapping : User::date input date Parameter value =0
result set : Outputrowcount user::outputrowcount

getting errors

"An error occurred while extracting the result into a variable of type (DBTYPE_DATE)". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Check for Missing Groups

Thank you

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/19/2013 :  00:48:33  Show Profile  Reply with Quote
what have you set as value for resultset property? it should be full resultset. You should also give an alias to count value and then map it to a variable created in SSIS if you want to use it forward

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000