dbTalk Databases Forums  

Error While Accessing Global Temporary Table inside a DTS Package

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


Discuss Error While Accessing Global Temporary Table inside a DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Error While Accessing Global Temporary Table inside a DTS Package - 05-18-2005 , 12:29 AM






I am creating a global temporary table by calling a stored procedure in one
of the steps in a DTS package. In another step, I am trying to fetch records
from the global temporary table. I am getting some errors here.
How to resolve this?


Regards,

Sevugan.C

Reply With Quote
  #2  
Old   
Chandra
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Package - 05-18-2005 , 12:38 AM







Hi What is the error that you are getting

best Regards,
Chandra
http://chanduas.blogspot.com/
---------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #3  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Package - 05-18-2005 , 12:43 AM



Hi Sevugan

Sevugan wrote:
Quote:
I am creating a global temporary table by calling a stored procedure
in one of the steps in a DTS package. In another step, I am trying to
fetch records from the global temporary table. I am getting some
errors here.
which errors do you get?
Are you sure you created a global temp table ;-)

Helge


Reply With Quote
  #4  
Old   
Sevugan
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Pack - 05-18-2005 , 01:31 AM



Hi Helge,
It says invalid object name. Default prcedure could not be parsed.


--
Sevugan.C


"Helge C. Rutz" wrote:

Quote:
Hi Sevugan

Sevugan wrote:
I am creating a global temporary table by calling a stored procedure
in one of the steps in a DTS package. In another step, I am trying to
fetch records from the global temporary table. I am getting some
errors here.

which errors do you get?
Are you sure you created a global temp table ;-)

Helge


Reply With Quote
  #5  
Old   
Sevugan
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Pack - 05-18-2005 , 01:31 AM



Hi Chandra,
It says Invalid object name.
--
Sevugan.C


"Chandra" wrote:

Quote:
Hi What is the error that you are getting

best Regards,
Chandra
http://chanduas.blogspot.com/
---------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #6  
Old   
Chandra
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Pack - 05-18-2005 , 02:20 AM



Is the session active between 2 steps. The temporary table gets deleted when
the session is killed.

just try acessing the table by ##temptable

--
best Regards,
Chandra
http://chanduas.blogspot.com/
http://groups.msn.com/SQLResource/
---------------------------------------



"Sevugan" wrote:

Quote:
Hi Chandra,
It says Invalid object name.
--
Sevugan.C


"Chandra" wrote:


Hi What is the error that you are getting

best Regards,
Chandra
http://chanduas.blogspot.com/
---------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #7  
Old   
Sevugan
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Pack - 05-18-2005 , 07:16 AM



Hi,
I have created a temporary table with ##. I executed the step in the DTS
package. It said successfully executed. I looked up in the tempdb database
for the temporary table I have created in the previous step. It was not
available.
Is it possible to create a ##temporary table inside a DTS Package.
--
Sevugan.C


"Chandra" wrote:

Quote:
Is the session active between 2 steps. The temporary table gets deleted when
the session is killed.

just try acessing the table by ##temptable

--
best Regards,
Chandra
http://chanduas.blogspot.com/
http://groups.msn.com/SQLResource/
---------------------------------------



"Sevugan" wrote:

Hi Chandra,
It says Invalid object name.
--
Sevugan.C


"Chandra" wrote:


Hi What is the error that you are getting

best Regards,
Chandra
http://chanduas.blogspot.com/
---------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #8  
Old   
Sevugan
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Pack - 05-18-2005 , 07:18 AM



Hi
I have created a emp table with the name ##TempTable
--
Sevugan.C


"Helge C. Rutz" wrote:

Quote:
Hi Sevugan

Sevugan wrote:
I am creating a global temporary table by calling a stored procedure
in one of the steps in a DTS package. In another step, I am trying to
fetch records from the global temporary table. I am getting some
errors here.

which errors do you get?
Are you sure you created a global temp table ;-)

Helge


Reply With Quote
  #9  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Error While Accessing Global Temporary Table inside a DTS Pack - 05-18-2005 , 07:38 AM



Hi Sevugan,

"Sevugan" <Sevugan (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:1CA43F66-30FA-4EDA-929F-1C9FCA723C0C (AT) microsoft (DOT) com...
Quote:
Hi,
I have created a temporary table with ##. I executed the step in the
DTS
package. It said successfully executed. I looked up in the tempdb
database
for the temporary table I have created in the previous step. It was not
available.
Is it possible to create a ##temporary table inside a DTS Package.
You should be able to create temp tables, but there are some things to
consider.
1. The table is removed when the package finishes. If the connection is
resetted/closed during package execution the table is also gone.
2. Avoid to use temp tables in workflows where datapumps are inbetween,
because somtimes the connection is resetted by the datapump task which will
result in loss of temp table.
BTW: The table will get a dynamic name inside of the temp DB, so it's not
easy to find it from outside - do you know how to look for it?

Helge




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.