Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Single User mode

Author  Topic 

Brunda
Starting Member

2 Posts

Posted - 2010-08-30 : 07:39:28
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

2 Posts

Posted - 2010-08-30 : 07:41:59
Also,

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

Brunda
Go to Top of Page
   

- Advertisement -