[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2013-10-24
1
Medium Priority
?
314 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
[X]
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
1 Comment
 
LVL 40

Accepted Solution

by:
lcohan earned 2000 total points
ID: 39598003
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

650 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