Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
An operation that removes all rows in a table without causing any triggered action
11
votes
How to get last truncated time for each tables in SQL Server database
Remember that truncate is an efficiently logged operation. … UserWhoIssuedTruncate
FROM fn_dblog(NULL, NULL)
WHERE Operation = 'LOP_BEGIN_XACT' and
[Transaction ID] IN (
SELECT [Transaction ID]
FROM fn_dblog(NULL, NULL)
WHERE [Transaction Name] = 'TRUNCATE …
4
votes
Accepted
Huge MSDB database
I tried to use the SP sp_delete_backuphistory but this filled my MSDB transaction log and almost killed the server...
Are there any other ways to clear this and shrink the file without causing any da …
4
votes
Accepted
SSIS package blocks itself if uses TRUNCATE
This is due to blocking caused by the delete task accessing the metadata from the database during the Pre-Execution phase.
The locks can be found using sys.dm_tran_locks and it will have -2 value as …