Create stored procedures by code