Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Procedure Using Global Temporary Table Error

Status
Not open for further replies.

inspi

Technical User
May 24, 2006
50
US
Hi ,
My stored procedure insert data in a global temporary table(on commit delete rows type table) in Oracle depending on the parameter we pass to the procedure. The stored procedure returns a result set from ref cursor of this data. When I try accessing the stored procedure through Crystal reports 2008(using crystal ODBC) , it gives me an error ,

ORA-08103 object no longer exists.

When I run it in TOAD it runs absolutely fine.
Are global temporary tables not supported in Crystal reports 2008? or am I going wrong somewhere?
This is something very urgent.
Appreciate your immediate response.
Thanks!
 
You have answered your own question "global temporary table"
When you are using a global temporary table it is deleted when the process ends. Change the table type and use
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[table name]') AND type in (N'U'))
DROP TABLE [dbo].[table name] prior to running the process again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top