using an sql mime type just isnt going to work unless the user uploading has used a specific SQL editor that can support it. when im working with SQL queries i use notepad and just save as plain text.
i think you need to open the document up on the server and validate some part of it like check that you can find either an INSERT, DELETE, UPDATE and SET (
stuff like that otherwise its just not going to work.