transaction-log

How to view transaction logs in SQL Server 2008 [closed]

百般思念 提交于 2019-11-26 08:52:37
问题 I need to view the transaction logs of a database on SQL Server 2008 in order to find a delete transaction and hopefully roll it back. Unfortunately I have no clue where to start, and I\'m finding it difficult to determine which are good articles on Google. What should I do? 回答1: You could use the undocumented DBCC LOG(databasename, typeofoutput) where typeofoutput: 0: Return only the minimum of information for each operation -- the operation, its context and the transaction ID. (Default) 1:

How do you clear the SQL Server transaction log?

此生再无相见时 提交于 2019-11-26 00:49:14
问题 I\'m not a SQL expert, and I\'m reminded of the fact every time I need to do something beyond the basics. I have a test database that is not large in size, but the transaction log definitely is. How do I clear out the transaction log? 回答1: Making a log file smaller should really be reserved for scenarios where it encountered unexpected growth which you do not expect to happen again. If the log file will grow to the same size again, not very much is accomplished by shrinking it temporarily.

How do you clear the SQL Server transaction log?

倾然丶 夕夏残阳落幕 提交于 2019-11-25 20:01:15
I'm not a SQL expert, and I'm reminded of the fact every time I need to do something beyond the basics. I have a test database that is not large in size, but the transaction log definitely is. How do I clear out the transaction log? Making a log file smaller should really be reserved for scenarios where it encountered unexpected growth which you do not expect to happen again. If the log file will grow to the same size again, not very much is accomplished by shrinking it temporarily. Now, depending on the recovery goals of your database, these are the actions you should take. First, take a full