BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Drop a Temporary Table

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Ray Marron
Guest





PostPosted: Fri Aug 13, 2004 4:59 pm    Post subject: Re: Drop a Temporary Table Reply with quote



"Jesus Cardenas" <jesusc (AT) tfs (DOT) grupo-ed.com> wrote

Quote:
I need to be able to check if a temporal table exists,
if exists drop that table ...

any suggestions..

What database?

In most cases, you could probably just issue the DROP TABLE command and
ignore the error if it doesn't exist.

--
Ray Marron



Back to top
Vitali Kalinin
Guest





PostPosted: Fri Aug 13, 2004 5:31 pm    Post subject: Re: Drop a Temporary Table Reply with quote



That thing will fail either on DROP TABLE #temporal if #temporal won't
exists or on select * from #temporal since you are droping it before select.
So this query is useless.
"Jesus Cardenas" <jesusc (AT) tfs (DOT) grupo-ed.com> сообщил/сообщила в новостях
следующее: news:411cf651$1 (AT) newsgroups (DOT) borland.com...
Quote:
My database is MSSQL 7

I've TADODataSet with this

DROP TABLE #temporal

SELECT *
FROM #temporal


How can ignore the error if the table doesn't exist ?




"Ray Marron" <me (AT) privacy (DOT) net> wrote in message
news:411cf380$1 (AT) newsgroups (DOT) borland.com...
"Jesus Cardenas" <jesusc (AT) tfs (DOT) grupo-ed.com> wrote in message
news:411cf300$1 (AT) newsgroups (DOT) borland.com...
I need to be able to check if a temporal table exists,
if exists drop that table ...

any suggestions..

What database?

In most cases, you could probably just issue the DROP TABLE command and
ignore the error if it doesn't exist.

--
Ray Marron







Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.