I'm looking for a good plugin that will automatically do things like upper case all keywords, indent lines appropriately, maybe brackets around reserved words being used as names / aliases, etc.

  • Additional Question : Also like it do not touch or format certain block in script.
    – KumarHarsh
    Dec 18, 2019 at 5:09

1 Answer 1


Redgate's SQL Prompt is the best I've ever used. It's not free though. ApexSQL has a free tool (ApexSQL Complete), but I've never used it...looks like it does the same sort of thing.

  • I think ApexSQL Complete is specifically for Visual Studio integration not SSMS.
    – J.D.
    Dec 17, 2019 at 22:35
  • 1
    @J.D. ApexSQL works in both Visual studio and SSMS. You can have it installed for both, or only one if you so desire.
    – D Kramer
    Dec 18, 2019 at 8:25
  • Cool I'll check it out. Not sure who downvoted SQL_Hacker, but I gave him an upvote for the suggestion anyway.
    – J.D.
    Dec 18, 2019 at 15:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.