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
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
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 143

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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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 UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

690 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