dbTalk Databases Forums  

Execute SQL Task - querying oracle

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


Discuss Execute SQL Task - querying oracle in the microsoft.public.sqlserver.dts forum.



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

Default Execute SQL Task - querying oracle - 11-28-2006 , 01:18 PM







I am querying oracle thru ssis execute sql task. When i use the
following direct input query, i am getting error message <No result
rowset is associated with the execution of this query> but when i use a
simple query it runs just fine.

here is the pl/sql code im using (returns names as comma delimited
test). Can I not use PL/SQL code in this task???

with
data as (
select name,
row_number() over (order by bsc) rn,
count(*) over () cnt
from TABLE_NAME
)
select substr(sys_connect_by_path(name,','),2) name_list
from data
where rn = cnt
connect by prior rn = rn-1
start with rn = 1

Any input/ideas/suggesstions are greatly appreciated.

Thanks.


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.