Table Variable - Column Suggestions Disappearing
Digga
Posts: 27 Bronze 3
in SQL Prompt
Hi
When I have the query disconnected, I get the full suggestions list from my table variable, though when I connect to a SQL Server in Azure, column suggestions disappear for my table variable and the schema only shows the first column. When I connect to on-premise SQL Servers, both my local instance and remote within our network, I have all the columns and the table schema available.
Azure connection gives this:
Non Azure connection gives this:
I'm not sure if this is me being a dummy or there's a bug within SQL Prompt.
Any advice you can give would be greatly appreciated.
SQL Prompt: 10.6.0.17688
SSMS: 17.9.1
OS: Windows 10 Enterprise x64 - Version 10.0.19041 Build 19041
When I have the query disconnected, I get the full suggestions list from my table variable, though when I connect to a SQL Server in Azure, column suggestions disappear for my table variable and the schema only shows the first column. When I connect to on-premise SQL Servers, both my local instance and remote within our network, I have all the columns and the table schema available.
Azure connection gives this:
Non Azure connection gives this:
I'm not sure if this is me being a dummy or there's a bug within SQL Prompt.
Any advice you can give would be greatly appreciated.
SQL Prompt: 10.6.0.17688
SSMS: 17.9.1
OS: Windows 10 Enterprise x64 - Version 10.0.19041 Build 19041
Tagged:
Answers
Dan Jary | Redgate Software
Have you visited our Help Center?
Thanks for getting back to me.
Unfortunately the new version behaves in the same way in SSMS. Something I have noticed, both versions, 10.6.0 and 10.6.1, function correctly in Visual Studio 2019 Enterprise 16.8.4.
Hope this helps and let me know if there's anything else you need from me or need me to test.
Kind regards,
Digga
Dan Jary | Redgate Software
Have you visited our Help Center?
Dan Jary | Redgate Software
Have you visited our Help Center?
I already had 18.5 installed and upgraded to 18.8, though the same behaviour exists in this version of SSMS as well.
Kind regards,
Digga
When I raised this issue, yes I was connecting using Azure with MFA. I just got your message about the connection, I changed connection to my local instance to see the expected output, then switched to another Azure SQL Server using SQL Authentication, and unfortunately the behaviour returns. So the common is a connection to an Azure Database, regardless of the connection being Azure with MFA or SQL Authentication.
Kind regards,
Digga
Dan Jary | Redgate Software
Have you visited our Help Center?
Thanks for the follow-up.
I can confirm the settings are the same as your screenshot and I have upgraded to version 10.6.12.20269.
There's no change in behaviour.
Kind regards,
Digga
Dan Jary | Redgate Software
Have you visited our Help Center?
Here's the script:
The nullability switch changes as well as the loss in columns with the above script. I just removed IDENTITY from the first column and it worked fine with no difference between Azure or on-premise, when I put it back in the issue occurs again. Remember, in Visual Studio 2019 this worked fine in both cases.
Kind regards,
Digga
Dan Jary | Redgate Software
Have you visited our Help Center?
Dan Jary | Redgate Software
Have you visited our Help Center?
Thanks for the update and nice to know I'm not going mad.
Have a great weekend.
Kind regards,
Digga
Dan Jary | Redgate Software
Have you visited our Help Center?
Dan Jary | Redgate Software
Have you visited our Help Center?
Many thanks for the update and look forward to testing this out.
Have a great weekend.
Kind regards,
Digga
Dan Jary | Redgate Software
Have you visited our Help Center?
Fixed in 10.10.
Many thanks.
Dan Jary | Redgate Software
Have you visited our Help Center?