Dropping Tables

Dropping Tables

Post by Erin Peterso » Wed, 03 Mar 2004 05:01:41

Hi all.

Quick question about dropping tables.

If I drop a table do all of the associated indices and keys get dropped with
it as well or must they be separately and explicitly deleted?

SQL Server 2K



Dropping Tables

Post by Anith Se » Wed, 03 Mar 2004 05:03:34

Yes, the keys & indexes will be dropped as well.



Dropping Tables

Post by Louis Davidso » Wed, 03 Mar 2004 11:03:54

Not foreign keys that relate into the table however, you have to drop them


Compass Technology Management

Pro SQL Server 2000 Database Design

Note: Please reply to the newsgroups only unless you are
interested in consulting services.  All other replies will be ignored :)

Quote:> Yes, the keys & indexes will be dropped as well.

> --
> Anith


1. Problems dropping indexes when dropping tables


I have tried to drop a table which executes fine, but on recreating the
table (obviously slightly differently) I've found that it doesn't always
successfully drop the indexes.  The message I am getting at he moment is
as follows:

Table Corrupt: Object does not match between extent in allocation page
and Sysindexes; check the following extent: alloc pg#29184 extent#29280
object id on extent=0 (object name = 0) object id in Sysindexes;
1465108310 (object name=adr)

has anybody ever had this error?  And even if not, does anybody know
what it's asking me to do?

I would be grateful for nay help as I am at a complete loss



2. mysql - strange results

3. Drop table versus truncate and drop index

4. history within perform

5. Relation between DROP TABLE and DROP INDEX


7. Scripting DROP Table *and* DROP (related) Foreign Keys...

8. Which ERD Tools do you use?

9. drop table failed to drop associated sequence

10. Which is better Implicit or Explicit drop table for #temp tables

11. Problem with Drop Table and truncate table

12. Deleting group of tables by drop table ?