 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ray Marron Guest
|
Posted: Fri Aug 13, 2004 4:59 pm Post subject: Re: Drop a Temporary Table |
|
|
"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
|
Posted: Fri Aug 13, 2004 5:31 pm Post subject: Re: Drop a Temporary Table |
|
|
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 |
|
 |
|
|
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
|
|