If we drop a table, does it also drop related objects like constraints, indexes, columns, defaults, views, and stored procedures?
Answer / 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 |
What is a join and their types?
2 Answers Challenger Financial,
What is the difference between login and a user?
13 Answers CTS, TCS,
Is sql different from sql server?
What is the difference between createstatement and preparedstatement?
What is the difference between Procedure and Function
4 Answers Accenture, Nagarro, TCS,
Is it possible in sql table to have more than one foreign key?
How do indexes help, types?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
Can another user execute your local temporary stored procedures?
What are the two authentication modes in sql server?
How to get @@error and @@rowcount at the same time?
Give the query of getting last two records from the table in SQL SERVER?
0 Answers Petranics Solutions,
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)