Currently we have developers writing SQL Queries written in java code, which is placed in over different areas of code. The queries themselves are not much optimized. The DBA's cannot take ownership of optimizing the query as they are in application level.
Will writing each and every query in a stored procedure help to make this situation better ? What is the best practice to control the quality of SQL in the application ?