Solved

How to find a query in the SQL transaction log?

Posted on 2010-08-16
6
308 Views
Last Modified: 2012-05-10
I'm using MS SQL 2000 Server. A few weeks ago I ran a fairly complex query against the database. Unfortunately I didn't save this query, now I need to run this same report. Is it possible for me to find this query in the sql transaction history logs? Can I do a search for part of my query to find it?
0
Comment
Question by:greddin
6 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
Comment Utility
No, not possible.
0
 
LVL 31

Expert Comment

by:James Murrell
Comment Utility
Hate to say this but you cannot
0
 
LVL 31

Expert Comment

by:James Murrell
Comment Utility
Hate to say this but you cannot
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
make that 3 to say: sorry ...
0
 
LVL 60

Expert Comment

by:chapmandew
Comment Utility
Also, SELECT statements will never be in the tran log...only DML statements, such as INSERT, UPDATE, DELETE...and then only if you're in FULL recovery model.
0
 

Author Closing Comment

by:greddin
Comment Utility
Since you responded first, I'll give you the points. Thanks everyone.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now