Re: Restore leaves DB in Loading state
From: Geoff N. Hiten (SRDBA_at_Careerbuilder.com)
Date: 07/14/04
- Next message: Dylan kruger: "Re: index create memory"
- Previous message: Brian Moran: "Re: SQL Server Encrypt, Failure.."
- In reply to: Terry Wight: "Re: Restore leaves DB in Loading state"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 09:44:18 -0400
Sorry for underestimating your technical skill. In this forum, it is
usually better that way. :)
I think your problem may have something to do with permissions. Perhaps the
SQL Agent account controlling the job or the context the job runs under does
not have permissions to create/modify/update the standby file. That would
leave SQL restore hanging until it could write to that file. SInce it works
under other security contexts, that may be a good place to check.
-- Geoff N. Hiten Microsoft SQL Server MVP Senior Database Administrator Careerbuilder.com I support the Professional Association for SQL Server www.sqlpass.org "Terry Wight" <dontsendmecrud@hotmail.com> wrote in message news:uogJYISaEHA.3352@TK2MSFTNGP12.phx.gbl... > I think you are mistaken. What I "told it to do" is restore the database > in standby with no recovery or rollback. This lets me apply transaction > logs throughout the day. If I use recovery, I lose incomplete > transactions and cannot apply transaction logs. > > It should show up in SQL EM as "(Read Only)" like the 12 other databases > I do this with every day. > > I know quite a lot about every method of backing up and restoring SQL > Server databases and have been doing it for years. What I don't know, > and perhaps you can help me with this, is how to diagnose the problem > here. > > When the job on SERVER-A completes and I view the job history. The job > reports successfull completion. > > When I look at the DB on SERVER-B the database is left in the > "(Loading)" state instead of the expected "(Read Only)" state and I see > no errors in the SQL Server Log. > > I've tried adding STATS=5 to the remote procedure, but the output does > not come back across to the linked server executing the job on SERVER-A, > so I can't see what's happening. > > If I execute the exact same statements in the remote proc using SQL > Query Analyzer on SERVER-B the procedure completes normally and the > database is left in "(Read Only)" state as expected. > > The problem only occurrs when running remotely from a job. > > I don't think it's a permissions issue, because the procedure executes > and the job comes back successfull. > > I just need help diagnosing the problem so I can automate my backups to > the warm standby for this particular DB. > > Like I say, it works for 12 other databases at my company. > > Thanks for your help. > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it!
- Next message: Dylan kruger: "Re: index create memory"
- Previous message: Brian Moran: "Re: SQL Server Encrypt, Failure.."
- In reply to: Terry Wight: "Re: Restore leaves DB in Loading state"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|