Solved

Permission require to truncate transaction log

Posted on 2014-11-20
4
594 Views
Last Modified: 2014-12-05
Any advice what is the permission require to perform truncate transaction log (non sa equivalent)?
0
Comment
Question by:Keng0499
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40454587
to perform truncate log, you need the backup log permission:
http://msdn.microsoft.com/en-us/library/ms179478.aspx
Security -  Permissions
BACKUP DATABASE and BACKUP LOG permissions default to members of the sysadmin fixed server role and the db_owner and db_backupoperator fixed database roles.
0
 

Author Comment

by:Keng0499
ID: 40454595
So, if the user has BACKUP DATABASE and BACKUP LOG permission, than it should truncate the log also.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40454605
the user could truncate the log

however, truncating the log is not a regular action to be executed, only if really needed
typically, if the log file has grown MUCH too large, and you need to bring back the size to a reasonable size
in which case to not is that if you expect the log file to SHRINK as a result of the truncate log statement, you did not yet understand fully how the transaction log file works, and you should do some readings on that subject
0
 
LVL 17

Expert Comment

by:Gerald Connolly
ID: 40459372
What is it you are trying to do? Is it to reclaim space?
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PolyServe for SQL server 13 52
Stored Proc - Rewrite 42 78
Estimating my database size 7 51
2008 to 2016 jump (SQL Server) 1 33
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question