Skip to content
Advertisement

Can’t see created tables in Object Explorer – Microsoft SQL Management Studio

I am trying to create some tables within a database, however the tables are not appearing in my object explorer view.

my code is as follows:

I looked this up before posting and found this exact question:

Creating table with T-SQL – can’t see created tables in Object explorer

However, he was using “tempdb”, which I am not.

I ran the query

which returned:

I can modify, select, drop, etc. on these tables, but I cannot see them. Am I missing something? Another question brought up the prospect of “test” and “production”? They didn’t go into much detail and google did not help me

🙁

Thank you for any help you can offer.

Edit: Karl below found the solution! Although clicking refresh (F5) on the object explorer does not update the database view, right clicking on the database and clicking refresh updates the tables.

Advertisement

Answer

This would happen if you have the tables node open in object explorer and don’t refresh after running your DDL. It is annoying that SSMS doesn’t autorefresh explorer after DDL. Refresh is available via the right-click context menu in object explorer.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement