All the database level checks like insert, update, delete or query; on any of the operations if we want to perform something we will have to use business rules.
Mention the below for a business rule and for a script to execute choose check the advanced check box:
When to run : insert
under the actions we can specify a message with out checking the advanced or by writing a script under the advanced section