dbTalk Databases Forums  

error: Invalid Pointer

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


Discuss error: Invalid Pointer in the microsoft.public.sqlserver.dts forum.



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

Default error: Invalid Pointer - 02-06-2004 , 06:50 AM






I have a Transform Data task where the source connection is SQL Server and
the destination connection is a text file. On the 'Source' tab of the task
I use a stored proc in the SqlQuery box like this:

exec dbo.xxTestTableVar

Here is the stored proc:
CREATE PROC dbo.xxTestTableVar
AS
DECLARE @tbl TABLE
(ID int)
INSERT INTO @tbl VALUES(1)
INSERT INTO @tbl VALUES(2)

SELECT *
FROM @tbl
-- END OF PROC

When I exec the proc in query analyzer it works fine. When I click on the
'Preview' button on the source tab of the transform task I get error 'No
rowset was returned from the SQL statement'. When I try to run the Task I
get an error 'Invalid Pointer'.

Thanks,
Al



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

Default Re: error: Invalid Pointer - 02-06-2004 , 07:41 AM






In the proc do

.....
AS
SET NOCOUNT ON
....
...



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote

Quote:
I have a Transform Data task where the source connection is SQL Server and
the destination connection is a text file. On the 'Source' tab of the
task
I use a stored proc in the SqlQuery box like this:

exec dbo.xxTestTableVar

Here is the stored proc:
CREATE PROC dbo.xxTestTableVar
AS
DECLARE @tbl TABLE
(ID int)
INSERT INTO @tbl VALUES(1)
INSERT INTO @tbl VALUES(2)

SELECT *
FROM @tbl
-- END OF PROC

When I exec the proc in query analyzer it works fine. When I click on the
'Preview' button on the source tab of the transform task I get error 'No
rowset was returned from the SQL statement'. When I try to run the Task I
get an error 'Invalid Pointer'.

Thanks,
Al





Reply With Quote
  #3  
Old   
Al Cadalzo
 
Posts: n/a

Default Re: error: Invalid Pointer - 02-06-2004 , 10:55 AM



Allan,
You da man! Once again you save the day.

Thanks,
Al


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

Quote:
In the proc do

....
AS
SET NOCOUNT ON
...
..



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Al Cadalzo" <cadalzo (AT) hotmail (DOT) com> wrote in message
news:O1T5H$K7DHA.2560 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
I have a Transform Data task where the source connection is SQL Server
and
the destination connection is a text file. On the 'Source' tab of the
task
I use a stored proc in the SqlQuery box like this:

exec dbo.xxTestTableVar

Here is the stored proc:
CREATE PROC dbo.xxTestTableVar
AS
DECLARE @tbl TABLE
(ID int)
INSERT INTO @tbl VALUES(1)
INSERT INTO @tbl VALUES(2)

SELECT *
FROM @tbl
-- END OF PROC

When I exec the proc in query analyzer it works fine. When I click on
the
'Preview' button on the source tab of the transform task I get error 'No
rowset was returned from the SQL statement'. When I try to run the Task
I
get an error 'Invalid Pointer'.

Thanks,
Al







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.