How to query the alert log using SQL?

NoSuchKey