Configure SQL rule