Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

dbcc checkdb('XYZ', REPAIR_ALLOW_DATA_LOSS) indicating that XYZ is already open and can only have one user at a time

Revert the database back to multi user mode and try something like the following.

alter database xyz SET single_user with rollback immediate 

dbcc checkdb('xyz',REPAIR_ALLOW_DATA_LOSS)

Likely another process is grabbing the database connection before you get in there. Combining both statements should ensure you get that connection.

Tags:

Sql

Sql Server

Tsql

Sql Server 2008

Related

"offending key" warning when connecting by ssh to my VPS Do I need a RHEL subscription to install packages? What is the best way to fix NTFS file permissions to inherit parent? What algorithm does Amazon ELB use to balance load? What is the difference between IDRAC, IPMI and ILO? Nginx startup fails ssl no such file or directory How do I tell Nginx to wait a number of seconds before serving an asset? Why does MySQL Slow Queries Log not exist? What are the differences between Floating IPs and Virtual IPs? Conditional ProxyCommand in ~/.ssh/config? How to export a hosted zone in AWS Route 53? how to solve the "open failed: administratively prohibited: open failed" when using a SSH tunnel proxy

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy