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

Can you explain about buffer cash and log cache in sql server?

502


What is the difference between Clustered and Non-Clustered Index?

597


Define self join in sql server joins?

519


What are the characteristics of modern DBMS?

620


What does the update command do?

615






Benefits of Stored Procedures?

565


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

555


Explain the properties of a relational table?

559


Is truncate a dml command?

503


How check triggers in sql server?

518


List all the types of user-defined functions?

520


Find nth lowest salary or get nth lowest salary?

593


How can we use ConnectorJ JDBC Driver with MS SQL?

566


Does partitioning ssd reduce performance?

490


What is not null constraint?

621