Azure Data Studio-Invalid object name

Nicole Yang 21 Reputation points
2022-08-13T04:51:42.877+00:00

After I import my data into the database, and it has appeared on the left hand side, I did my query, and it came up with a message 'Invalid Object Name'. Couldn't know how to solve the problem.230878-screen-shot-2022-08-12-at-94701-pm.png

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Dan Guzman 9,401 Reputation points
    2022-08-13T10:36:56.843+00:00

    To refresh the IntelliSense cache in ADS, press SHIFT+CTRL+P, begin typing "IntelliSense", and click "Refresh IntelliSense Cache" when it appears in the list.

    230834-ads.png

    To make quick work of this forward, you can assign a keybinding by clicking the gear icon to the right of the "Refresh IntelliSense Cache" entry and entering a key stroke combination.

    Separately, your screen image shows the newly imported tables were created in the master system database. I suggest you create a user database for this purpose as that will isolate the tables from system objects and facilitate promoting your database schema later. Run the T-SQL command below in a query window to create a new user database with name of your choosing and create/import your tables into that database.

    CREATE DATABASE YourDatabaseName;  
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.