Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



If we drop a table, does it also drop related objects like constraints, indexes, columns, defaults, ..

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

Post New Answer

More SQL Server Interview Questions

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?

0 Answers  


What is the difference between createstatement and preparedstatement?

0 Answers  


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?

0 Answers  


How do indexes help, types?

0 Answers  


How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?

0 Answers  


Can another user execute your local temporary stored procedures?

0 Answers  


What are the two authentication modes in sql server?

0 Answers  


How to get @@error and @@rowcount at the same time?

0 Answers  


Give the query of getting last two records from the table in SQL SERVER?

0 Answers   Petranics Solutions,


Categories