dbTalk Databases Forums  

temp tables in stored procedures called from dts package

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


Discuss temp tables in stored procedures called from dts package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
matthew c. harad
 
Posts: n/a

Default temp tables in stored procedures called from dts package - 10-06-2004 , 12:47 PM






i'm calling a stored procedure to generate a dataset for importation across
sql servers. the stored procedure uses a temp table. when trying to set up
the dts package, i get an error message "invalid object #temptablename"

what's going on here? can i just not use temp tables in sp's that get
called from dts packages? is there a standard workaround? or am i just
doing something wrong?

thanks
matthew

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

Default Re: temp tables in stored procedures called from dts package - 10-06-2004 , 01:20 PM






If you want to use a # table then what I do is I create it inmy database
just before I design the package so that it know about it and can do all the
maping things



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"matthew c. harad" <matthewcharad (AT) discussions (DOT) microsoft.com> wrote in
message news:16F46593-7207-4D93-9AA5-4F74682C163F (AT) microsoft (DOT) com...
Quote:
i'm calling a stored procedure to generate a dataset for importation
across
sql servers. the stored procedure uses a temp table. when trying to set
up
the dts package, i get an error message "invalid object #temptablename"

what's going on here? can i just not use temp tables in sp's that get
called from dts packages? is there a standard workaround? or am i just
doing something wrong?

thanks
matthew



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

Default Re: temp tables in stored procedures called from dts package - 10-07-2004 , 05:30 PM



I have had the same issue, Even if you have a sqltask that
creates the table, the temp table is not available to the
dts package because it is created and dumped once the
connection is closed.
Is there some connection property to use to hold open the
connection?
Quote:
-----Original Message-----
If you want to use a # table then what I do is I create
it inmy database
just before I design the package so that it know about it
and can do all the
maping things



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"matthew c. harad"
matthewcharad (AT) discussions (DOT) microsoft.com> wrote in
message news:16F46593-7207-4D93-9AA5-
4F74682C163F (AT) microsoft (DOT) com...
i'm calling a stored procedure to generate a dataset
for importation
across
sql servers. the stored procedure uses a temp table.
when trying to set
up
the dts package, i get an error message "invalid object
#temptablename"

what's going on here? can i just not use temp tables
in sp's that get
called from dts packages? is there a standard
workaround? or am i just
doing something wrong?

thanks
matthew


.


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.