January 28, 2013 at 2:36 pm
I've a read-only database and I'd like to change it to read_write but the following script never seems to complete. Not sure where I'm going wrong.
USE DatabaseName
go
ALTER DATABASE [DatabaseName] SET READ_WRITE
GO
Is there an alternative method?
January 28, 2013 at 2:44 pm
You could add "WITH NO_WAIT"
January 29, 2013 at 6:48 am
Would [WITH ROLLBACK IMMEDIATE] help?
Andrew
January 29, 2013 at 1:02 pm
Andrew Pruski (1/29/2013)
Would [WITH ROLLBACK IMMEDIATE] help?Andrew
Thanks Andrew. This worked. I'll read further on ROLLBACK IMMEDIATE.
January 29, 2013 at 1:09 pm
No worries, good link
Summary
No Wait - will cause the statement you are executing to fail if there are open transactions
Roll back Immediate - will rollback open transactions when you execute your script (an override I guess)
Andrew
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply