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

2 Answers 2

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

This is probably extremely terrible advice but I'll post it anyways: I needed to create a SharePoint 2003 (WSS 2.0) site and I am using SQL Server 2014 for my DB Server. I could not create a site collection. I copied the contents of the sys.sp_dboption stored procedure and created it in my master database on SQL Server 2014 (in the dbo namespace) and SharePoint works now.

So yeah, that can be an option if you're stuck...

share|improve this answer
Told you it was terrible advice :) –  CMerat Mar 2 at 22:43
Maybe terrible advice, but it got me out of a pickle. Thanks for daring to post it! –  JV. Mar 13 at 15:39

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.