如何在 SQL Server Management Studio 中显示 DDL 语句的结果(如 Oracle 那样)?
有没有办法显示CREATE
/ALTER
等DDL语句的结果;它们在查询窗口中“运行”之后?
默认情况下,它只显示“命令已完成”。
有没有办法通过相同的命令查看与 Oracle 显示的结果类似的内容?
Is there a way to show the results of DDL statements such as CREATE
/ALTER
; after they are "run" in the query window?
By default it just shows "command(s) completed".
Is there a way to see something similar to the results Oracle shows from the same commands?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建表命令后的“命令已完成”与“表已创建”oracle sql*plus 消息非常相似。
如果您需要desc my_table,您可以执行sp_help my_table
"command(s) completed" after a create table command is very similar to 'table created' oracle sql*plus message.
If you need a desc my_table you can execute sp_help my_table
内置?不,据我所知没有。但您可以通过对相应目录视图进行
SELECT
操作来轻松完成此操作,以验证您刚刚所做的操作。像这样的事情会起作用:Built-in? No, not that I know of. But you can easily do this with a
SELECT
to the respective catalog view to verify what you've just done. Something like this would work:您还可以使用 sp_helptext my_sp 来描述存储过程、函数或视图
You can also use sp_helptext my_sp for describe stored procedure, function, or view