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 2008 Forums
 SSIS and Import/Export (2008)
 udf (function) in ssis
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

860 Posts

Posted - 02/06/2013 :  08:44:31  Show Profile  Reply with Quote

i create a packge that transfer date from ole db source to oledb destionation.

in ole db source i write simple query "select * from customers"

but i have udf that i want to add in select :"select a,f_trn(cust) from customers"

which component can i use this function?

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 02/06/2013 :  10:03:42  Show Profile  Reply with Quote
You should be able to use the modified query. Use two-part name for the udf that includes the schema:
select a,dbo.f_trn(cust) from customers
Go to Top of Page

Aged Yak Warrior

860 Posts

Posted - 02/06/2013 :  13:25:51  Show Profile  Reply with Quote
1.i want to use simple quey "select * from....) in ole db source
2.which component can i use the function (udf) on the some column, (after the ole db source)?

Go to Top of Page

Posting Yak Master

160 Posts

Posted - 02/06/2013 :  14:59:18  Show Profile  Reply with Quote
inbs .. As per James K, all you need to do is modify your query in your ole db source. It is assumed you are using SQL Command as data access mode in the ole db source task.

Based on James K ..

select *, dbo.f_trn(cust) as newColumnName from customers

The query will give you all columns from the customer table and newColumnName column
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.04 seconds. Powered By: Snitz Forums 2000