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

Answers were Sorted based on User's Feedback



What is the difference between Drop and Truncate..

Answer / pavan

Drop will delete all the existing structure. if it applies
to a table, Truncate will delete only the data while
keeping the structure of the table as it is.

Is This Answer Correct ?    72 Yes 3 No

What is the difference between Drop and Truncate..

Answer / koti-khammam

TRUNCATE: Only data is deleted structure of the table
exists.


DROP: Both data and structure of the table gets removed.

Is This Answer Correct ?    57 Yes 1 No

What is the difference between Drop and Truncate..

Answer / mohsin mohammed abdul

Drop means removing the existing object from the database.
turncate means you are deleting the data from the table and
oracle implicitly issues commit statment and even when you
say rollback , you won't get the data back due to commit ..

Is This Answer Correct ?    36 Yes 12 No

What is the difference between Drop and Truncate..

Answer / lakshmi

Drop can be used to drop the entire table including data
and structure of table where as truncate removes rows from
table but the structure of table remains as it is.

Is This Answer Correct ?    18 Yes 1 No

What is the difference between Drop and Truncate..

Answer / mayur jain

Drop means removing.Removing the existence.

Truncate - there is no log maintained for the deleted
records.As when we perform delete a log is maintained a slow
process.

Is This Answer Correct ?    27 Yes 13 No

What is the difference between Drop and Truncate..

Answer / suman kalyan betal

DROP means it's drop the table(with rows,Pk_key, Fk_key and
indexces)from the database.
TRUNCATE do the same as DROP but maintain the Pk_key,
Fk_key and indexces declaration only remove rows.

---by suman kalyan betal (suman_kal@rediffmail.com)

Is This Answer Correct ?    9 Yes 3 No

What is the difference between Drop and Truncate..

Answer / ganesh mandlik

DROP :- DROP will Remove Structure as well as all the Data
of the Table.
i.e. Primary Key, Foreign Key, Indexes & etc...

Truncate :- Truncate will Remove only Data But not the
Structure of the Table.


Ganesh Mandlik......

Is This Answer Correct ?    4 Yes 0 No

What is the difference between Drop and Truncate..

Answer / vishant kakwani

drop is delete the data with table and if id is used as autoincrement then id can't be started with 1.
Truncate is delete the only data table as it is and autoincrement id will started with 1 every time if you truncate the table.

Is This Answer Correct ?    4 Yes 0 No

What is the difference between Drop and Truncate..

Answer / sripathi venkata ramesh

I am Sripathi Venkata Ramesh

Drop: Table structure + Data are deleted

Truncate: Data alone deleted but it is faster than delete.
Here we can not use where Condition here.

Delete: Data alone deleted. Here we can use where condition
here

Is This Answer Correct ?    3 Yes 0 No

What is the difference between Drop and Truncate..

Answer / vipin narwal

HI TO ALL!!!


DROP: will lead in deleting the structure of the table
along with all associated constraints like Primary
Key,Foreign Key,..etc and also deallocates the memory
allocated to the Database objects..

Truncate: Truncate like Delete deletes the data associated
with a Database Object but structure remains there i.e,
memory remains allocated,...but faster than Delete...

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Where are full-text indexes stored?

0 Answers  


Tell me what is de-normalization and what are some of the examples of it?

0 Answers  


Why and when do stored procedure recompile?

0 Answers  


user defined datatypes

1 Answers   Wipro,


What is the difference between a stored procedure and a user defined function in sql server?

2 Answers   Millennium,


how insert selected column only ?

3 Answers   Robert Half,


one of my database size is 2gb and Unrestricted Growth for Data file up to 10%.But every day after day I am getting Primary Data file is full 99.999 please take appropriate actions.Why it is? Even disk space is also not full,but still I am getting the alerts.

1 Answers   Cognizant,


wat is the main diff between sql server 2000and sql server 2005

6 Answers   Jade Software,


how to select 5 to 7 rows from a table, which contains 10 rows?

21 Answers   IBM,


What is a heap?

0 Answers  


List out the different types of locks available in sql server?

0 Answers  


what is a self join? Explain it with an example? : Sql server database administration

0 Answers  


Categories