Changed Table Variable definition not re-scanned (3.6.0.109)
PDinCA
Posts: 642 Silver 1
If I declare a table-variable and then write some code that consumes it, SQL Prompt picks up the TV and auto-completes OK. If I then make significant changes to the structure of the TV, how do I provoke SQL Prompt to use the NEW definition? (It insists on using the old one.) Closing the script window, losing bookmarks and split screen and the useful change markers, etc., is definitely possible, though undesirable, so could either a "force schema refresh" include a re-scan for variables, or give us another CTRL+ hotkey to do the job if it's too complex a thing to have SQL Prompt do automatically...
Jesus Christ: Lunatic, liar or Lord?
Decide wisely...
Decide wisely...
Comments
Many Thanks
Eddie
Eddie Davis
Technical Support Engineer
Red Gate Software Ltd
E-Mail: Support@red-gate.com
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
When I try to duplicate your issue my SQL Prompt seems to be picking up the changes to the table variable. In the Performance options tab on the options dialog under Listed Candidates there are some options that control the rescanning of the text. I suspect that your select statement is lower the the scanning range in that tab so the table variable is not being rescanned. If you write a select statement just below the Table variable does it pick up the changes ?
Lionel
Red Gate Software
Decide wisely...
Lionel
Red Gate Software
Decide wisely...
Lionel
Red Gate Software