What is difference between TRUNCATE and DELETE statement
Answer Posted / nirmala.s
if u use delete to remove the data from the table,this will
delete the data.after using rollback the removed data can
be retrived.But in case of, truncate , it will delete the
data and that can't ever be retrived.even after using
rollback also. but the table structure of the table will
be there
if u are using drop command , this will delete entire
table.and its structure.
| Is This Answer Correct ? | 29 Yes | 6 No |
Post New Answer View All Answers
What is attribute relationships, why we need it? : sql server analysis services, ssas
Write a code to select distinct records without using the DISTINCT keyword.
How to rebuild indexes with alter index ... Rebuild?
What are the main sources of data?
What is triggers and its types?
What is policy based management (pbm)? : sql server database administration
How can you ensure that the database and sql server based application perform well?
What is the use of builtinadministrators group in sql server? : sql server security
How many replicas are maintained for each SQL Azure database?
Can primary key be null?
What is GUID in sql server?
Is it possible for a stored procedure to call itself or recursive stored procedure?
How many types of attribute relationships are there? : sql server analysis services, ssas
Mention the command used to rename the database.
What are the purposes of floor and sign functions?