Re: how to know the table is exist in the database
- From: "Mark Rae" <mark@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Oct 2005 08:55:13 +0100
"joy.net" <luxingyu1@xxxxxxxxxxx> wrote in message
news:%23DX0hgT2FHA.3912@xxxxxxxxxxxxxxxxxxxxxxx
Depends on the database and/or on the database access method...
E.g. if you want to know if the Orders table exists in SQL Server, send it
the following scalar query:
SELECT COUNT(*) FROM sysobjects WHERE name = 'Orders'
If the result is 1, the table exists - if the result is 0, the table doesn't
exist.
.
- Follow-Ups:
- Re: how to know the table is exist in the database
- From: joy.net
- Re: how to know the table is exist in the database
- From: Miha Markic [MVP C#]
- Re: how to know the table is exist in the database
- Prev by Date: Re: Connect to a password protected MS Access DB
- Next by Date: Re: Newbie with Database Connection Problem
- Previous by thread: Connect to a password protected MS Access DB
- Next by thread: Re: how to know the table is exist in the database
- Index(es):
Relevant Pages
|