Cannot set DBCEventFile property when DBCEvents is off. (Error 2045)

You have tried to use DBSETPROP( ) without setting DBCEvents On.