SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Single User mode
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Brunda
Starting Member

India
2 Posts

Posted - 08/30/2010 :  07:39:28  Show Profile  Reply with Quote
We have an issue with a database job.

We have a job that executes many stored procedures. Before executing these stored procedures we put the DB in single user mode and then on successful completion we change it back to multi user mode. We have exception handling. In the catch block we again set it to multi user mode.

Issue
***************
When the database is in single user mode and we try to connect to the DB it doesn't allow us to connect but the job that is running using the single user mode is abended.

Unable to figure out what could be the issue.
Can some one please help us.

Thanks

Brunda

Brunda
Starting Member

India
2 Posts

Posted - 08/30/2010 :  07:41:59  Show Profile  Reply with Quote
Also,

how we set to single user mode is by using the ALTER database command.

Brunda
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000