SQL Server找不到存储过程“显示" [英] SQL Server could not find stored procedure 'show'

查看:1086
本文介绍了SQL Server找不到存储过程“显示"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用最基本的过程show,因为它会引发错误:

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

消息2812,第16级,状态62,第1行
找不到存储过程显示".

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

我用过:

SHOW DATABASES

请帮助我找到此问题的答案.

Please help me find answers to this issue.

推荐答案

要列出SQL Server中的所有数据库,

To list all Databases in SQL Server,

Select * from sys.databases 

要排除内置数据库,

Select * from sys.databases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb'); 

这篇关于SQL Server找不到存储过程“显示"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆