Stored procedure parameters not available after 150 lines
PrivatePyle
Posts: 6
We are working on rather large stored procedures all the time. Therefore it is crucial for us, to have intellisense suggesting us stored procedure parameters.
We noticed, that SQL Prompt does not suggest us parameters after a few dozen lines inside an create SP script. Is there any setting, that needs to be set to get this working in all of the script, or is it a bug?
We are using SQL Prompt 6.3.0354 on a Windows 7x64 System in SSMS 2008R2 on a SQL Server 2008R2.
Here's an example:
We noticed, that SQL Prompt does not suggest us parameters after a few dozen lines inside an create SP script. Is there any setting, that needs to be set to get this working in all of the script, or is it a bug?
We are using SQL Prompt 6.3.0354 on a Windows 7x64 System in SSMS 2008R2 on a SQL Server 2008R2.
Here's an example:
CREATE PROCEDURE [dbo].[pr_TestProc] ( @fi_Param INT = 0 ) AS BEGIN SELECT 'xxx' -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT SET @fi_Param = 5 --INTELLISENSE STILL WORKING -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT SET --> @fi_Param NOT SUGGESTED ANYMORE -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT -- RANDOM TEXT END GO
Comments
You can tweak how far Prompt will look back in the script for suggestions by editing: And then increasing <ParserLookBackDistance> from 5000 to something larger (adding another 0 on should work).
This was originally put in place for performance reasons and could cause the Prompt suggestions to lag on larger scripts. Our 6.4 beta has a few performance improvements that might help here and we're also currently looking into some ways to remove this limit entirely, but it'll be some time before they're ready for release.
Let me know if this helps.
Thanks,
Aaron.
I wasn't able to try your tweak yet, but it seems a bit odd, that you have to keep your limit that low, to have an acceptable performance.
ApexSQL Complete can do it... for free... and it's not really that slow. Or am I missing something?
Indeed it is very low by default and we'll be increasing this in our 6.4 release within the next month. The current setting is a legacy limitation from a few years ago and so is much less relevant now, but apologies for not increasing it earlier.
Hopefully after trialling both you'll have a better overall experience with Prompt, and please do give the 6.4 beta a try with the look back limit increased.
Let me know if you have any questions.
Thanks,
Aaron.