How to view transaction logs in SQL Server 2008 [closed]
问题 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: