I want to create custom security policy based on SQL Error Code field (selected with red rectangular below). I tried following but not achieved:
If I create policy by putting strings from Error Message in "SQL Exception Strings", it works but I want to create security policy based on error codes.
Dear Cezmi,I hope you are doing well,As per current policy structure we cannot detect error code, only option is to use use some strings contained in SQL Error message. Which is usually text for that error code.The SQL error code is part of the response for the Query (generally for incorrect query). What sort of security policy is we are expecting to run against it? Can you please give me an example use case for this scenario so that we can try to create something to detect the same.