Solved

xp_readerrorlog  with parameters gets stuck on 2005 but not in 2008 servers.

Posted on 2013-10-24
1
304 Views
Last Modified: 2013-11-06
can you please run this in a 2005 server. do you get results back? if not, then may it is a new feature in 2008?


DECLARE @StartTime datetime  
DECLARE @EndTime datetime  

SELECT @StartTime = create_date from sys.databases where name = 'tempdb'
SELECT @EndTime =  GETDATE()  

EXEC master.dbo.xp_readerrorlog 0, 1, 'Starting', 'up', @StartTime, @EndTime , 'asc'
0
Comment
Question by:25112
1 Comment
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
Comment Utility
It's working fine on SQL 2005 as well - what service pack you have installed and login access/rights when you run it?



This is what I get on my 2005 SP3
LogDate      ProcessInfo      Text
2013-10-22 00:58:59.300      spid7s      Starting up database 'master'.
2013-10-22 00:58:59.420      spid7s      Starting up database 'mssqlsystemresource'.
2013-10-22 00:58:59.600      spid11s      Starting up database 'model'.
2013-10-22 00:58:59.750      spid11s      Starting up database 'tempdb'.
2013-10-22 00:58:59.980      spid24s      Starting up database 'msdb'.
2013-10-22 00:58:59.980      spid25s      Starting up database 'xxxxxxxxx'.
2013-10-22 00:58:59.980      spid23s      Starting up database 'xxxxxxCRM'.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

10 Experts available now in Live!

Get 1:1 Help Now