Invalid object name (red squiggle)
Diginari
Posts: 2
First off, let me apologise if this has been reported before. Also as I have a valid license with support, let me know if there is a better way for me to get help.
Ok, I am using SQL Prompt v. 7.1.0.112
The Issue I am having is not really a functional one, more of an annoyance. In SSMS if I right click a database and select 'New Query' everything works as expected.
But I have 'a lot' of databases and I tend to just 'New Query' on the server rather than looking for the database. Once the query window opens, I then type 'Use DBNAME'
Perfect, I am not querying this database. However, when I am typing my query I get red squiggly lines on my objects, with the error 'Invalid object name' - worth noting the query then executes successfully.
I've tried to clear the cache and also tried enabling the experimental features 'Automatically refresh suggestions' to no-avail.
Is this a known issue, is this just me ? Hopefully someone can advise.
Many thanks, Jamie
Ok, I am using SQL Prompt v. 7.1.0.112
The Issue I am having is not really a functional one, more of an annoyance. In SSMS if I right click a database and select 'New Query' everything works as expected.
But I have 'a lot' of databases and I tend to just 'New Query' on the server rather than looking for the database. Once the query window opens, I then type 'Use DBNAME'
Perfect, I am not querying this database. However, when I am typing my query I get red squiggly lines on my objects, with the error 'Invalid object name' - worth noting the query then executes successfully.
I've tried to clear the cache and also tried enabling the experimental features 'Automatically refresh suggestions' to no-avail.
Is this a known issue, is this just me ? Hopefully someone can advise.
Many thanks, Jamie
Comments
SQL Prompt doesn't provide the red squiggles, this is SSMS. I haven't looked into it, but SSMS might not know about USE statements so it thinks that you're still querying against master, hence not finding the objects.
Best regards,
David
Turn off the tool belts intellisense, the red squiggly lines go away.
So even if it is SSMS that is providing the red squigglies, it is because of RedGate's intellisense that they appear.