Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-02-26 : 09:18:24
|
| doron writes "Is there any command or query in SQL t=which gives me the ability to check whether or not a specific tabal alrady exist in a specific bata base?Thanks." |
|
|
andre
Constraint Violating Yak Guru
259 Posts |
Posted - 2002-02-26 : 09:27:01
|
I believe this will work:if exists (select * from sysobjects where id = object_id(N'[dbname].[dbo].[tblArchive]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) |
 |
|
|
|
|
|