dbTalk Databases Forums  

using a stored procedure as soiurce for DDQ tack

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


Discuss using a stored procedure as soiurce for DDQ tack in the microsoft.public.sqlserver.dts forum.



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

Default using a stored procedure as soiurce for DDQ tack - 09-14-2004 , 02:37 PM






When I attempt to use a user defined stored procedure for the source of a
Transform Data Task or DDQ task I get an error message that states that no
rowset in returned from the stored procedure.
I need to use a declared table to remove invalid rows before processing.

here's how I created the sp.

CREATE PROCEDURE [dbo].[usp_test] AS
begin
declare @t table
(
id int primary key
)

insert into @t
select id from sysobjects

select id from @t
end


GO



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: using a stored procedure as soiurce for DDQ tack - 09-14-2004 , 05:35 PM






Try doing this at the top

SET NOCOUNT ON

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Darren" <deo.is (AT) unknown (DOT) com> wrote

Quote:
When I attempt to use a user defined stored procedure for the source of a
Transform Data Task or DDQ task I get an error message that states that no
rowset in returned from the stored procedure.
I need to use a declared table to remove invalid rows before processing.

here's how I created the sp.

CREATE PROCEDURE [dbo].[usp_test] AS
begin
declare @t table
(
id int primary key
)

insert into @t
select id from sysobjects

select id from @t
end


GO





Reply With Quote
  #3  
Old   
Darren
 
Posts: n/a

Default Re: using a stored procedure as soiurce for DDQ tack - 09-15-2004 , 10:22 AM



Thanks!
I had a workaround using a user function that returned a table but it's nice
to know why the sp didn't work.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Try doing this at the top

SET NOCOUNT ON

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Darren" <deo.is (AT) unknown (DOT) com> wrote in message
news:%23qZixGpmEHA.2588 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
When I attempt to use a user defined stored procedure for the source of
a
Transform Data Task or DDQ task I get an error message that states that
no
rowset in returned from the stored procedure.
I need to use a declared table to remove invalid rows before processing.

here's how I created the sp.

CREATE PROCEDURE [dbo].[usp_test] AS
begin
declare @t table
(
id int primary key
)

insert into @t
select id from sysobjects

select id from @t
end


GO







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.