About 1,210,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. 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 …

  5. 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. …

  6. sql server - Cannot truncate table because it is being referenced …

    Oct 31, 2008 · 279 Because TRUNCATE TABLE is a DDL command, it cannot check to see whether the records in the table are being referenced by a record in the child table. This is why …

  7. 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 …

  8. SQL Server String or binary data would be truncated

    SQL Server 2017 CU12 also supports this feature. Improvement: Optional replacement for "String or binary data would be truncated" message with extended information in SQL Server 2017 …

  9. sql server - Permissions for truncating a table - Stack Overflow

    Jan 19, 2011 · What permission do I need to GRANT a user, in MSSQL, in order to be able to truncate a table? I'm trying to grant the minimal set of permissions, but I can't use DELETE, …

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

    Nov 25, 2015 · If you want to delete the records of a table with a large number of records but keep some of the records, You can save the required records in a similar table and truncate the …