question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MSSQL temp table autocomple not work

See original GitHub issue

System information: Operating system (distribution) and version: Windows 10 OS Build 2104 DBeaver version: 21.0.3 Java version “1.8.0_191” No Additional extensions

Describe the problem you’re observing: Column hints (a.k.a intellisence or autocomplete) doesn’t work with MS-SQL temp tables.

Steps to reproduce:

  1. Create a temp table
select 1 as col1, 'a' as col2
into #temp
  1. invoke “column hint” via table alias:
select
           t. -- <- col1, col2 should appear
from #temp t

Actual behavior: Column hint doesn’t appear. image

Workaround: Type full-qualified name to a temp table:

select t. -- <- col1, col2 are shown
from tempdb.dbo.[#test_______________________________________________________________________________________________________________000000001C52] t

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ShadelessFoxcommented, Jun 29, 2021

Implemented:

java_zBTC9e0z1M

1reaction
ShadelessFoxcommented, Jun 22, 2021

FYI #temp and #test___...___000000001C52 are not the same names.

We can improve proposal analyzer, so it will lookup tables ~without this madness-looking hash at the end~ from tempdb.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sql server - IntelliSense not working but it is enabled
Go to Tools -> Options -> Text Editor -> Transact-SQL -> General -> IntelliSense · Go to Query -> IntelliSense should be selected...
Read more >
Autocomplete stopped working on SSMS 2016 - Stack Overflow
Enabled statement completion : please go to Tools >> Options >> Text Editor >> Transact-SQL >> General, and checked on Auto list members...
Read more >
SSMS IntelliSense doesn't not recognize local temporary table
I'm using SSMS 2008 R2 and honestly, this is so irritating that IntelliSense doesn't work on local temporary table.
Read more >
Using and troubleshooting SQL Server IntelliSense - SQLShack
When a new object is added to a database the IntelliSense cache needs to be refreshed. This can be done by pressing CTRL+SHIFT+R...
Read more >
SQL Complete Temp table intellisense - Devart Forums
3. I have RedGate SQL prompt on a different computer (albeit with a different SSMS version) and the issue does not exist at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found