Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to use table valued function with parameter in ole db source


How to use table valued function with parameter in ole db source

Author
Message
saidwarak01
saidwarak01
SSC Journeyman
SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)

Group: General Forum Members
Points: 79 Visits: 274
Hi Everyone,

I have a package where in I have to use a table valued function which accepts parameter from a package variable in OLE DB SOURCE.

NOTE: SQL COMMAND FROM VARIABLE (DATA ACCESS MODE).

I also tried it generating a sql statement including parameter in script task and I tried using it in OLE DB SOURCE but it is giving following error.

ERROR: COMMAND TEXT NOT SET FOR A COMMAND OBJECT.

Please let me know if any one has any solution for this problem.

Thanks in advance.
saidwarak01
saidwarak01
SSC Journeyman
SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)

Group: General Forum Members
Points: 79 Visits: 274
Hi Everyone,

did anyone experienced this type of problem.

Thanks in advance...
divyanth
divyanth
SSC Veteran
SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)

Group: General Forum Members
Points: 233 Visits: 556
SQL command from Variable should work..What is the Error that you are getting ? Are the SSIS variable data types same as your Function variables ??
Elliott Whitlow
Elliott Whitlow
SSCertifiable
SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)

Group: General Forum Members
Points: 6892 Visits: 5314
I just thought of something.

You need to have the command in the variable at design time so just put one in so the designer has something to work with.

CEWII
saidwarak01
saidwarak01
SSC Journeyman
SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)SSC Journeyman (79 reputation)

Group: General Forum Members
Points: 79 Visits: 274
Hi Elliot and Divyanth,

Thanks for your replies. I will try with your solutions and I'll let you know whether I am able to execute the table valued function or not.

Thanks once again.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search