missing candidates when adding index or PK constraint
JDHnz
Posts: 16
When writing a script containing "ALTER TABLE zzz ADD CONSTRAINT PRIMARY KEY NONCLUSTERED (" I would have expected to see a list of column candidates after I typed the opening parenthesis, but I didn't see anything until I typed the first letter of the column name and even then it was only a list of matching snippets.
Similarly, when adding an index, I expected but didn't get an appropriate list of columns at the relevant point in the CREATE INDEX statement.
Similarly, when adding an index, I expected but didn't get an appropriate list of columns at the relevant point in the CREATE INDEX statement.
Comments
ALTER TABLE table1 ADD PRIMARY KEY NONCLUSTERED<prompt>
won't give the available columns from table1. This is something that we can definitely improve upon. Therefore I have raised it in our bug tracking software for the developers to look at. They are currently working on the next version of SQL Prompt and hopefully this is something that they'll be able to implement in this next version.