If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How can I detect if a temp table already exist

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-21-02, 00:56
ve2jin ve2jin is offline
Registered User
 
Join Date: Aug 2002
Posts: 1
How can I detect if a temp table already exist

Hi,
I am writing a database application using VB. My application rely heavily on temp tables.
My question is:

"How can I detect if a temp table already exist."

Mind you, that the database engine is “INFORMIX SE” running on a Unix machine. The connection to the database is done through ODBC.
Reply With Quote
  #2 (permalink)  
Old 08-21-02, 06:30
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
SE is a weird situation. It will create temporary files in your DBTEMP directory.

You could always do a

select * from temptable
where 0=1

and check on syntax errors....

If it were IDS, an onstat -g ses <sess-id>
would give you the list of temporary tables of that session.
SE doesn't have a sysmaster database, so I don't know where it stores this information...
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On