Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql Server management studio how to auto capitalize

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
like image 659
Rachit Patel Avatar asked Jan 07 '09 20:01

Rachit Patel


People also ask

How do I change case in SSMS?

What I do is I select the word and hit CTRL+SHIFT+U and it SSMS immediately changes the case of the selected word. Similar way if one want to convert cases to lower case, another short cut CTRL+SHIFT+L is also available.

Does SQL care about capitalization?

Keywords in SQL are case-insensitive for the most popular DBMSs. The computer doesn't care whether you write SELECT , select, or sELeCt ; so, in theory, you can write however you like.


1 Answers

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

like image 68
Scott Ivey Avatar answered Sep 20 '22 15:09

Scott Ivey