About 31,400 results
Open links in new tab
  1. sql server - Truncate with where clause - Database Administrators …

    Apr 12, 2017 · Can I use truncate command with a where clause? I need to remove specific rows from several tables. How can I delete specific data from the entire database? SELECT …

  2. sql server - Why does truncating a temp table at the end of the …

    Oct 17, 2017 · Truncating a temp table at the end of the stored procedure that creates it seems to cause the space the table uses in tempdb for the data to be released faster than if no truncate …

  3. sql server - What permissions are necessary for truncating a table ...

    The best place to look for this information is in books online. The article on TRUNCATE TABLE here indicates: The minimum permission required is ALTER on table_name. TRUNCATE …

  4. What can cause TRUNCATE TABLE to take a really long time?

    Using TRUNCATE TABLE on an InnoDB table requires a full table lock because not DML (Data Manipulation). Doing DELETE FROM user_engagements; will not help because MVCC info is …

  5. SQL Server TRUNCATE TABLE permissions - Database …

    Dec 12, 2017 · Is it possible to configure SQL Server user so that he doesn't have access to DDL statements but has access to run TRUNCATE TABLE commands. I know that behind the …

  6. sql server - SQL Permission to Truncate Table - Database …

    Feb 28, 2018 · How Do I give permission for user to Truncate all tables in database? The minimum permission required is 'ALTER on table_name' per articles below. With this, how do I …

  7. sql server - Truncate tables with dependent foreign key constraints ...

    You cannot truncate a table that has foreign key constraints. I would script your truncate statement to drop the constraints, then truncate the table, and then re-create the constraints.

  8. sql server - Using dynamic query to loop through Db for a …

    Jun 21, 2018 · Please, any help with my SQL query below will be appreciated. I am not familiar with how to loop through DBs to truncate a table. What I have tried is below: DECLARE …

  9. Truncate all Tables in Database with T-SQL

    Mar 27, 2019 · Is there a way to truncate all tables in a database without using sp_MSForEachTable in TSQL Language? Background: not my call, DBA company policy does …

  10. sql server 2019 - Long TRUNCATE operations - Database …

    Oct 3, 2022 · On Microsoft SQL Server 2019, there is a lot of long temp tables TRUNCATE operations with time over 5..10 seconds. Easy query like "TRUNCATE TABLE #tt22" can take …

Refresh