Hi there,
SQL Server Management Studio should have that covered fine.
When you load it up and create a new query, in the menu bar above the query window, you'll see an icon of a blue tick - it's next to the Execute button. That's the syntax checker. It will tell either the query is fine or if something is wrong.
Of course it won't tell you if you've written a valid query which actually does soemthing other then you intended but then again a C# compiler woudn't do tht either.
If you're using SQL Express, SQL Management Studio Express also has this functionality.
Dan
Dan Maharry
Read the feed at
http://feeds.feedburner.com/dansarchive