SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 udf (function) in ssis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

inbs
Aged Yak Warrior

836 Posts

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

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

3695 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

inbs
Aged Yak Warrior

836 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)?


thanks
Go to Top of Page

tm
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  
 New 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.23 seconds. Powered By: Snitz Forums 2000