Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see connection tree #878

Open
1 task done
MatCast opened this issue Nov 11, 2021 · 18 comments
Open
1 task done

Unable to see connection tree #878

MatCast opened this issue Nov 11, 2021 · 18 comments
Labels
mssql Microsoft SQL Server driver

Comments

@MatCast
Copy link

MatCast commented Nov 11, 2021

Describe the bug
When clicking on the left arrow on an active connection i get the following error and the connection tree is not shown:
Request connection/GetChildrenForTreeItemRequest failed unexpectedly without providing any details.

After the error appeared once it does not show up again upon re-clicking on the arrow but the connection tree still does not diplay.

I can run queries on the DB normally.

Expected behavior
The connection tree is shown when clicking on the connection arrow.

Screenshots
image

Desktop (please complete the following information):

  • SQLTools Version v0.23.0
  • VSCode Version: 1.62.1
  • OS: Windows 10
  • Driver:
    • MSSQL/Azure
  • Database version: Microsoft Azure SQL Data Warehouse - 10.0.13655.0
@MatCast MatCast added the triage label Nov 11, 2021
@tarekahf
Copy link

I have the same problem. Any resolution found?

@tkekawa3712
Copy link

Any resolution?

@gjsjohnmurray gjsjohnmurray added the mssql Microsoft SQL Server driver label Jul 22, 2022
@gjsjohnmurray
Copy link
Collaborator

After connecting are you able to run this query?

SELECT * FROM INFORMATION_SCHEMA.TABLES

If so, does this list schemas and tables?

@gjsjohnmurray gjsjohnmurray added needs more info Awaiting response from reporter and removed triage labels Sep 28, 2022
@git1453
Copy link

git1453 commented Sep 30, 2022

I have the same problem.
And when I want to run this query

SELECT * FROM INFORMATION_SCHEMA.TABLES

Then
image

@gjsjohnmurray
Copy link
Collaborator

@git1453 please confirm which driver you are using, and which versions of the driver and main extension.

Does the CONSOLE button give any more information?

And if you right-click on your connection in the SQLTools view, choose "Edit Connection", then press "TEST CONNECTION" does this succeed?

@packyzbq
Copy link

packyzbq commented Nov 14, 2022

@gjsjohnmurray
I have the same problem.
And when I run the query

SELECT * FROM INFORMATION_SCHEMA.TABLES

Then I get this
image

The console output is

Connection is closed.

By the way,
SQLTools Version v0.26.0
SQLTools Microsoft SQL Server/Azure: v0.3.0
VSCode Version: 1.73.1
OS: Windows 10
Driver:
MSSQL/Azure
Database version: Microsoft SQLServer 2014

@gjsjohnmurray gjsjohnmurray reopened this Nov 14, 2022
@gjsjohnmurray gjsjohnmurray removed the needs more info Awaiting response from reporter label Nov 14, 2022
@gjsjohnmurray
Copy link
Collaborator

@packyzbq I don't have access to an instance of SQL Server 2014 to test against.

If you take SQLTools out of the equation by opening a native MSSQL command shell on that server and database, using the same userid as your SQLTools connection specifies, does that statement work?

@packyzbq
Copy link

packyzbq commented Nov 15, 2022

@packyzbq I don't have access to an instance of SQL Server 2014 to test against.

If you take SQLTools out of the equation by opening a native MSSQL command shell on that server and database, using the same userid as your SQLTools connection specifies, does that statement work?

@gjsjohnmurray
YES. And I also tried running this statement on both DataGrip and SQL Server extension for Visual Studio Code with the same userid, and it worked fine.

@pallapo
Copy link

pallapo commented Mar 6, 2023

try to increase connection timeout, for me 50000 worked fine.

@tarekahf
Copy link

tarekahf commented Mar 6, 2023

try to increase connection timeout, for me 50000 worked fine.

How to increase the timeout?

@SecondSite-web
Copy link

I had the same problem now. Solved it by unchecking the 'useUTC' option in VSCode - SQL Tools Settings in the connection settings

@jasonedokpa
Copy link

I tried the same, and sadly, that did not work for me.

@shalevku
Copy link

shalevku commented Mar 4, 2024

Same problem here, connection tree doesn't expand but queries work including the query that gjsjohnmurray suggested to try:

SELECT * FROM INFORMATION_SCHEMA.TABLES

@csubhodeep
Copy link

Hello all, do we have any workaround for this one?

@fzhem
Copy link
Contributor

fzhem commented May 8, 2024

Related to #710

@fzhem
Copy link
Contributor

fzhem commented Sep 18, 2024

@csubhodeep The sisue occurs due to how list of databases is retrieved. I've fixed this issue in my fork:

https://marketplace.visualstudio.com/items?itemName=fzhem.sqltools-driver-mssql-commver

@Lument-AndrewExley
Copy link

Can concur same experience with "Request connection/GetChildrenForTreeItemRequest failed unexpectedly without providing any details."

@fzhem Thanks for identifying and offering a fork, unfortunately, being on Apple Silicon, it isn't supported for me.

@fzhem
Copy link
Contributor

fzhem commented Nov 11, 2024

Can concur same experience with "Request connection/GetChildrenForTreeItemRequest failed unexpectedly without providing any details."

@fzhem Thanks for identifying and offering a fork, unfortunately, being on Apple Silicon, it isn't supported for me.

@Lument-AndrewExley The fork currently supports the msnodesqlv8 driver, which has limited platform compatibility. Given sufficient interest, I may make it universal by disabling msnodesqlv8 on unsupported platforms. This will take time alongside other projects and day-to-day work, but I can create a pull request to address the issue in the official driver in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mssql Microsoft SQL Server driver
Projects
None yet
Development

No branches or pull requests