问题
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.
回答1:
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');
回答2:
Try to refresh local Cache which is under the Intellisense.
来源:https://stackoverflow.com/questions/38133960/sql-server-could-not-find-stored-procedure-show