we\'re currently setting up out integration server and during that process we\'ve set up pre-commit hooks on the SVN so that our developers can\'t check in files that are syntac
I've written an CLI tool to syntax check SQL files using the phpMyAdmin SQL parser: php-sqllint.