About 1,360,000 results
Open links in new tab
  1. What's the difference between TRUNCATE and DELETE in SQL

    Sep 26, 2008 · Truncate and Delete in SQL are two commands which is used to remove or delete data from table. Though quite basic in nature both Sql commands can create lot of trouble until …

  2. Pros & Cons of TRUNCATE vs DELETE FROM - Stack Overflow

    Jul 15, 2010 · In SQL Server, it is possible to rollback a truncate operation if you are inside a transaction and the transaction has not been committed. From a SQL Server perspective, one …

  3. sql - Difference between drop table and truncate table? - Stack …

    Sep 25, 2008 · Truncate is a more powerful command that empties a table without logging each row. SQL Server prevents you from truncating a table with foreign keys referencing it, because …

  4. sql server 2008 - ¿Cuál es la diferencia entre TRUNCATE y DELETE ...

    Dec 13, 2016 · TRUNCATE TABLE entradas; Ahora que sabemos en que consiste cada sentencia, veamos las semejanzas y diferencias: Ambas eliminan los datos, no la estructura. …

  5. sql - What is the difference between truncate, drop and delete of ...

    Sep 10, 2015 · 0 TRUNCATE The TRUNCATE statement removes all data from a table but leaves the table structure intact. e.g. TRUNCATE TABLE my_table; This statement is much …

  6. What is the command to truncate a SQL Server log file?

    Sep 2, 2008 · I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log?

  7. How to delete large data of table in SQL without log?

    Nov 25, 2015 · SQL server 2016 Truncate table with partitions Below is what I did first to delete the data before I could recreate the table with partitions with required data in it.

  8. Truncate (not round) decimal places in SQL Server

    I'm trying to determine the best way to truncate or drop extra decimal places in SQL without rounding. For example: declare @value decimal(18,2) set @value = 123.456 This will …

  9. How to truncate a foreign key constrained table? - Stack Overflow

    Why doesn't a TRUNCATE on mygroup work? Even though I have ON DELETE CASCADE SET I get: ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint …

  10. How do you truncate all tables in a database using TSQL?

    Oct 1, 2008 · 13 Truncating all of the tables will only work if you don't have any foreign key relationships between your tables, as SQL Server will not allow you to truncate a table with a …