Stored Procedure Autocomplete
nmg196
Posts: 8
Hi,
How do you force a stored procedure autocomplete window to come up? If I start typing the name of a stored procedure in a Query window, nothing happens. If I press Ctrl-Space to force the autocomplete window to appear, the stored procedure icon is ghosted out and disabled (even though it's perfectly valid to call a stored procedure from a Query window - obviously)
Is this a bug or a am I doing something stupid? I've put everything on the default settings but it's still not working. It seems it geninely doesn't support SP names within the query window unless you're within an ALTER PROCEDURE block and type EXEC first (which is unnecessary).
Thanks,
Nick...
How do you force a stored procedure autocomplete window to come up? If I start typing the name of a stored procedure in a Query window, nothing happens. If I press Ctrl-Space to force the autocomplete window to appear, the stored procedure icon is ghosted out and disabled (even though it's perfectly valid to call a stored procedure from a Query window - obviously)
Is this a bug or a am I doing something stupid? I've put everything on the default settings but it's still not working. It seems it geninely doesn't support SP names within the query window unless you're within an ALTER PROCEDURE block and type EXEC first (which is unnecessary).
Thanks,
Nick...
Comments
SQl Prompt 3.9 does work as you need it to. You can start typing a stored procedure name and have candidate stored procedure names appear in the candidate list without the need to type ALTER... or EXEC.
The only exception I know of is if you are creating a dynamic SQL string -- in that case no candidates should appear.
I restarted SSMS and it started working in a new Query window when I typed "Get" (which many of my procedures start with). Then I looked at the about box for SQL Prompt and then closed it. I immediately typed the exact same thing ("Get") and no intellisense appears! Bang! It seems that once you've looked at the about box, much of the prompting is disabled! However if you then open a NEW query window, it works fine in the NEW window only. The existing window remains 'prompt-less'. It's only opening the About box that seems to cause this problem. If you go into anything else like Options or Check for Updates, it's fine.
Please try this yourself and let me know if you see the same thing? I can reproduce this every time.
Sorry, this does not happen to me. Maybe it would be worth checking the log by selecting the "show log" item in the SQL Prompt menu and see if there is anything of interest in there.