If there's one thing that I hate about SQL Server, it's the horribly unhelpful error messages. My favorite is "Incorrect syntax near..." because it provides almost no hint as to what's wrong.
Are there any tools to get a better idea of what's wrong with the statement? Or does anybody have any other helpful hints for figuring these kinds of errors out?