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 |
How to get nth highest salary from employee table.
How to edit table in sql server 2017?
What is tcl in sql server?
What is the template in sql?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
What is a transaction and what are ACID properties?
What is truncate table?
Write an SQL query if u want to select the data from one block which intern reflects in another block ? thanx,do reply
What are transactions and its controls?
What is log ldf?
How to skip remaining statements in a loop block using continue statements?
What are the extra roles available in msdb? : sql server security