agbelo
SSC Veteran
Points: 217
More actions
October 13, 2016 at 12:16 pm
#330846
Hello all,
Please I want to be able to parse the result of this query to a variable using today's date. How can I write the sql code?
EXEC sys.sp_readerrorlog 0,1,'pegasus','-'
Thanks
Bright
Database Admin
Y.B.
SSChampion
Points: 11649
October 13, 2016 at 12:34 pm
#1906441
sp_readerrorlog uses the extended procedure xp_readerrorlog which allows parameters for start and end dates.
EXEC xp_readerrorlog 0, 1, 'pegasus', '-', '2016-10-13', '2016-10-14'
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply