Solved

Can we know a table exist?

Posted on 1998-11-20
1
206 Views
Last Modified: 2010-03-19
When we create a table,we must know if it is exist.
When we drop a table,we must know if it is exist.
So how to know?
0
Comment
Question by:mathematics
1 Comment
 
LVL 1

Accepted Solution

by:
bequette earned 50 total points
ID: 1091914
You can select from the sysobjects table try this
if exists(select * from sysobjects where name="MY_TABLE_NAME")

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question