When using xp_readerrorlog you may receive the error message:
Msg 22004, Level 12, State 1, Line 0
Error executing extended stored procedure: Invalid Parameter Type

Pre-SQL Server 2012 this does work.

From SQL Server 2012 onwards you require the N prefix:

Previous
Next