Query Result

  • 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

  • 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'


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply