views:

987

answers:

3

Is there any FREE "build-in" way to capitalize the "keywords" in the SQL 2005/2008 management studio when you write a sql query?

i.e

truncate table x

should be automatically changed to:

TRUNCATE TABLE x
+3  A: 

There is no built in 'intellisense' in SQL Server 2005 (there is in 2008) but Redgate do an add-in for exactly this and more. It will auto-complete table names, columns, add square brackets, re-format stored procs etc, and it works well:

http://www.red-gate.com/products/SQL_Refactor/index.htm

flesh
I love RedGate software. SQL Prompt and Refactor are some of my most heavily used tools.
TheTXI
+1  A: 

the intellisense in the 2008 management studio will do this as well as long as you are connected to a SQL 2008 database.

You can change the case you prefer to upper or lower under Tools / Options / Text Editor / Transact-SQL / IntelliSense

Scott Ivey
+1  A: 

This thread will help: http://stackoverflow.com/questions/401928/sql-formatter-for-sql-management-studio#401978

Not free, but cheap.

jcollum