adspace


Differencr Between DELETE and TRUNCATE?

Answer Posted / rajesh bhawsar

delete command, delete row by row and same time it makes an
entry in transaction log
while truncate remove the referance of respective
page/extent and doesn't make any entry in transaction log
truncate is faster then delete.
in case of truncate seed value (auto increment column) reset
to default unlike delete.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain “row_number()” in sql server with an example?

1087


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2300


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1210


do you know how to configure db2 side of the application? : Sql server database administration

1135


Can one drop a column from a table?

1098


How can you append an identity column to a temporary table?

1078


Explain system functions or built-in functions? What are different types of system functions?

1072


Where can you add custom error messages to sql server?

1222


How can we solve concurrency problems?

1130


How can I check that whether automatic statistic update is enabled or not?

1122


How raid can influence database performance?

1128


What are the properties of the transaction?

1085


How to remove duplicate rows from table except one?

1096


What are the source of constraints?

1015


Equi join and non equi join is possible with sql server?

1140