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

How many types of attribute relationships are there? : sql server analysis services, ssas

1002


How to sort query output in descending order in ms sql server?

902


What is difference between getdate and sysdatetime in sql server 2008?

1001


How raid can influence database performance?

974


What are synonyms?

913


Which Model uses the SET concept

937


What is the difference between seek predicate and predicate?

988


What is inner join in sql server joins?

978


Determine when to use stored procedure to complete sql server tasks?

988


what is the system function to get current user's user id? : Sql server database administration

951


Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication

938


What is primary key index?

921


what's new in sql server 2016?

909


What is database replication?

1079


What is the minimum recommended amount of ram for sql server 2012 enterprise?

889