SQL Server 2012中sp_dboption的等效项 [英] Equivalent of sp_dboption in SQL Server 2012

查看:705
本文介绍了SQL Server 2012中sp_dboption的等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个名为sp_dboption的系统存储过程,它在没有传递参数时显示有关数据库的信息,并且如果参数与值一起传递,则更改所述数据库属性值。



SQL Server 2012不再支持此功能,人们建议使用ALTER DATABASE。但是,这满足了sp_dboption功能的第二部分。我们如何在SQL Server 2012中获得与sp_dboption(不带参数)类似的第一个功能(获取所有数据库相关信息)?

There is a system stored procedure called sp_dboption which displays information about the database when no parameters are passed and also if a parameter is passed along with a value, the said database attribute value is changed.

SQL Server 2012 no longer supports this and people recommend using ALTER DATABASE. However this satisfies the second part of the sp_dboption functionality. How do we get the first functionality (get all database related information) in SQL Server 2012 similar to sp_dboption (without parameters) does?

推荐答案

怎么样: http://msdn.microsoft.com/en-us/library/ms186823.aspx [<一个href =http://msdn.microsoft.com/en-us/library/ms186823.aspxtarget =_ blanktitle =新窗口> ^ ]


这篇关于SQL Server 2012中sp_dboption的等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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