How to find a query in the SQL transaction log?

Posted on 2010-08-16
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?
Question by:greddin
LVL 60

Accepted Solution

chapmandew earned 500 total points
ID: 33449114
No, not possible.
LVL 31

Expert Comment

by:James Murrell
ID: 33449262
Hate to say this but you cannot
LVL 31

Expert Comment

by:James Murrell
ID: 33449263
Hate to say this but you cannot
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]
ID: 33449304
make that 3 to say: sorry ...
LVL 60

Expert Comment

ID: 33449314
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.

Author Closing Comment

ID: 33449400
Since you responded first, I'll give you the points. Thanks everyone.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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.

920 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

15 Experts available now in Live!

Get 1:1 Help Now