How I can add to these 2 scripts below a restriction, so it wont allow creating a hero with less than 3 characters in its name or when changing the name of the hero it wont allow less than 3 characters as well?
Currently everyone can create a hero with name: 1 or change their name .. basically all possible variations are available. I want to restrict it to minimum 3 characters name.
- SQL Server stored procedure script [creating a hero]: http://pastebin.com/pg9zt3Ps
- SQL Server stored procedure script [changing a hero name]: http://pastebin.com/TB3ZzvyP
I'm using Microsoft SQL Server 2005 / 64 bit
Will be much appreciated.
Kind Regards.