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...

What is the difference between Drop and Truncate

Answer Posted / tamilarasan sivaraj

DROP:It is used to delete the all structure of the db and
also we cant rollback.
EXAMPLE:Drop table student;
It will show error.No table found.

TRUNCATE:It is used to delete the table of the data and
structure remains,we can able to rollback.
EXAMPLE:truncate table student;

No records found;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the two editions in which SQL Azure database available?

119


Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?

992


What is table level trigger?

990


What is shrink log file?

884


What is view in sql?

881


Do you know what are the reporting services components?

957


What is filtered index?

1075


Explain optimistic and pessimistic concurrency?

972


Why do we partition data?

1008


How to drop existing indexes in ms sql server?

1051


Which joins are sql server default?

977


What is t-sql script to take database offline – take database online.

1058


What is temporal table?

859


What is the purpose of the tempdb database?

981


What are the advantages of user-defined functions over stored procedures in sql server?

1014