7

I can't use the most basic procedure, show, as it throws an error:

Msg 2812, Level 16, State 62, Line 1
Could not find stored procedure 'show'.

I used:

SHOW DATABASES

Please help me find answers to this issue.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

2 Answers2

11

To list all Databases in SQL Server,

Select * from sys.databases 

To exclude in-built DBs,

Select * from sys.databases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb'); 
SharK
  • 2,155
  • 1
  • 20
  • 28
0

Try to refresh local Cache which is under the Intellisense.

enter image description here

Jason Clark
  • 1,307
  • 6
  • 26
  • 51