Doesn't capitalize keyword where
Oliwa
Posts: 42 Bronze 2
When I type a query such as this...
SELECT *
FROM sys.databases
where [name] = 'temp'
I will capitalize SELECT and FROM when I hit tab, but not WHERE. It also capitalizes GROUP BY and ORDER BY, but not WHERE.
It does capitalize WHERE if I hit the space bar before hitting tab.
SELECT *
FROM sys.databases
where [name] = 'temp'
I will capitalize SELECT and FROM when I hit tab, but not WHERE. It also capitalizes GROUP BY and ORDER BY, but not WHERE.
It does capitalize WHERE if I hit the space bar before hitting tab.
Comments
Can you kindly explain us what exactly you type after keyword WHERE?
As when I type WHERE and press space to type [Name] my WHERE keyword gets capitalised.
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
So I type...
SELECT<TAB><TAB>*<ENTER>
FROM<TAB><TAB>dbo.MyTable<ENTER>
where<TAB><TAB>1 = 1;
My insertion keys for SQL Prompt at ENTER and TAB. Everything else is unchecked.
I typed as per specified by you in previous post as soon as I type <Tab> after WHERE it gets capitalised.
Can you kindly check the settings SQL Prompt 4 --> Options --> Format --> Case and check Reserved Keywords is selected as UPPERCASE?
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
What version of SQL Prompt are you using? I suspect your problem may have been fixed in the 4.0.2.53 update. My issue with the case not being updated after hitting enter was. (Here is a link to my post: http://www.red-gate.com/MessageBoard/vi ... php?t=9461)
Anu,
I have seen this happen as well even with the new version, but I can't reproduce it on demand.
At any stage if you are able to reproduce the issue kindly let me know the pattern.
Many thanks for your post.
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com