Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

The system stored procedure sp_dboption is not available in SQL Server 2012 anymore. How could it be replaced?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

sp_dboption was deprecated a while ago - http://msdn.microsoft.com/en-us/library/ms187310(v=sql.105).aspx

The recommended alternative is ALTER DATABASE - http://msdn.microsoft.com/en-us/library/ms174269.aspx

share|improve this answer
What's the replacement for getting options? Just query sys.databases? –  Rory Dec 17 '13 at 14:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.