IS is not a keyword
Giggles220
Posts: 154
This has become quite an annoying problem. If I try to type the following query
Select * from tablename where columnname is not null
I get the following:
SELECT * FROM tablename WHERE columnname INFORMATION_SCHEMA NOT NULL
why is the keyword IS not an option?
I used to have the same problem for AS but that seems to be fixed.
Select * from tablename where columnname is not null
I get the following:
SELECT * FROM tablename WHERE columnname INFORMATION_SCHEMA NOT NULL
why is the keyword IS not an option?
I used to have the same problem for AS but that seems to be fixed.
Comments
Open the file (e.g. in Notepad):
C:\Documents and Settings\Your.Name\Local Settings\Application Data\Red Gate\SQL Prompt 3\CompletionConfiguration.xml
There will be a section called SearchCondition_ReservedWords that looks like this (but much with about 40 CustomItemCandidates, not just AND!)
<CustomItem Name="SearchCondition_ReservedWords" ObjectType="ReservedWord">
<CustomItemCandidate>AND</CustomItemCandidate>
</CustomItem>
This is the list of words that pop-up in the context you mentioned. If you were to add a few, you'd leave it looking something like:
<CustomItem Name="SearchCondition_ReservedWords" ObjectType="ReservedWord">
<CustomItemCandidate>AND</CustomItemCandidate>
<CustomItemCandidate>OR</CustomItemCandidate>
<CustomItemCandidate>IS</CustomItemCandidate>
<CustomItemCandidate>ORDER</CustomItemCandidate>
</CustomItem>
This should be done while all supported SQL editors (ie Query Analyzer, SQL Server Management Studio and Visual Studio) are closed
Red Gate Software
OR and order will work fine as long as there are no columns that begin with OR or order.
After adding Order and IS to te file the problem is not fixed.
What do you use most IS or INFORM....
Just rename them out of the way
Edit the <information schema> short cut , make it infs or something
Then create a shotcut is as IS
easy peasy
Mike
I suspect if you remove <space> as a completion key you will be happier with how things work, you just have to get used to using a different completion key. (I only use <.> and <tab> as completion keys.)
Of course the other option would be to edit or delete some of the snippets to better fit your needs.
Principal Consultant
bartread.com Ltd
- Disable fast snippet insertion
- Increase the popup delay, or (as already suggested)
- Avoid using SPACE as a completion key
Hope one of those hits the spot.
Thanks,
Bart
Principal Consultant
bartread.com Ltd