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

Schema and tables not showing up for SQL server hosted on ubuntu server #1143

Open
4 tasks
umairshariff23 opened this issue May 3, 2023 · 1 comment
Open
4 tasks
Labels
mssql Microsoft SQL Server driver

Comments

@umairshariff23
Copy link

Describe the bug
I have a SQL server hosted on an ubuntu server and connected to vscode via SQLTools. I created a test database called hospital_db, a schema called hospital, and a table called test with values from 1 to 10. I can run the script select * from test and call the list of numbers from the table. However, I cannot see the schema and table show up under the database in the left pane.

Extract from the Output Channel Log
[1683145884364] INFO (ext): EXECUTING COMMAND => sqltools.getConnections [1683145884365] INFO (ls): REQUEST RECEIVED => connection/GetConnectionsRequest [1683145884367] INFO (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem [1683145884368] INFO (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest [1683145884368] INFO (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem [1683145884369] INFO (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest [1683145884387] INFO (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem [1683145884388] INFO (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest [1683145884388] INFO (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem [1683145884389] INFO (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest [1683146116024] INFO (ext): EXECUTING COMMAND => sqltools.showOutputChannel

To Reproduce
Steps to reproduce the behavior:

  1. Create a database
  2. Create a schema
  3. Create a table
  4. Refresh the connection or disconnect and reconnect to the server

Expected behavior
I expect to see a full list of all the schemas and tables for that schema under each database

Screenshots
image

Desktop (please complete the following information):

  • SQLTools Version [e.g. v0.27.1]
  • VS Code Version: [e.g 1.77.3]
  • OS: Windows
  • Driver:
    • PostgreSQL/Redshift
    • MySQL/MariaDB
    • [ x ] MSSQL/Azure
    • SQLite
    • Other? Which...
  • Database version: mssql/server:2019
@gjsjohnmurray gjsjohnmurray added mssql Microsoft SQL Server driver and removed triage labels May 4, 2023
@gjsjohnmurray
Copy link
Collaborator

Does #710 (comment) help? Maybe you need to specify database hospital_db explicitly in your connection definition.

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

2 participants