If we drop a table, does it also drop related objects like constraints, indexes, columns, defaults, views, and stored procedures?

Answer Posted / anusha

No, dropping the table does not delete the corresponding table objects. Need to drop Indexes, views first before dropping the table.

eg:
drop view <database name>.<view name>
alter table <database name>.<table name> drop <index type>
drop table <database name>.<table name>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain can you implement data mining in ssrs?

122


Can you create a logon trigger in sql server 2005 express edition?

791


What is difference between index seek vs. Index scan?

816


What are a scheduled jobs?

697


What is cte (common table expression)?

767






Can you explain what is sql server english query?

726


Why do we backup Active Directory ?

793


What are the restrictions that views have to follow? : SQL Server Architecture

741


How efficient you are in oracle and SQL server?

806


What is co-related sub query?

733


What are examples of triggers?

809


If we delete pack Spec what will be the status of pack Body ?

1164


what is raid and what are different types of raid configurations? : Sql server database administration

732


What are the joins in sql server? : sql server database administration

732


What happens to a statement batch if there is a compilation error?

697