Is there a tool for refactoring SQL, a bit like a ReSharper for SQL

MPritchard picture MPritchard · Feb 3, 2010 · Viewed 10.5k times · Source

The sort of stuff I'm after right now is quite basic:

  • Auto format
  • Detect unused variables
  • Variable naming convention checking

I wouldn't be surprised if there was a tool available that could handle more complex refactorings such as those found in Refactoring Databases, but I appreciate that the added complexities introduced by current db structure and data state may prevent many of them.

I suppose I'm after ReSQLer

Answer

Ahmad Mageed picture Ahmad Mageed · Feb 3, 2010

RedGate offers SQL Refactor and SQL Prompt, along with a slew of other SQL related tools. Check out their pages for more info and for a free trial.