Is there a way to run a SQL query without using a stored procedure?
You could use AwareIM's EXECUTE PROGRAM to run a batch file that connects to the DB and runs your query. I do this with MySQL and assume you could do something similar with other DBs.
But it's the third time I update a version and forgot to create the procedures
Are you saying that when you update a version you lose your stored procedures? I have not experienced this using MySQL, what DB are you using?