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. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 11 down vote accepted

sp_dboption was deprecated a while ago -

The recommended alternative is ALTER DATABASE -

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 '15 at 22:43
Maybe terrible advice, but it got me out of a pickle. Thanks for daring to post it! – JV. Mar 13 '15 at 15:39
Nice. Got me out of a pickle with an old version of Fortress too. – Program.X Oct 8 '15 at 13:28

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.