Re: Restore leaves DB in Loading state

From: Geoff N. Hiten (SRDBA_at_Careerbuilder.com)
Date: 07/14/04


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!


Relevant Pages

  • RE: Backups have Shadow Copy Problems
    ... and restarted the server. ... suggested and changed the recovery model to simple on the one database called ... I understand the issue to be: the backup task failed ... You back up data from a volume that contains a Microsoft SQL Server ...
    (microsoft.public.windows.server.sbs)
  • Re: SQL CE Synching Problems
    ... Have you granted IUSER_ServerName access to your publication within SQL ... It looks like the permissions problem is getting access to the publication. ... so the issue has to be between the server tools and the publisher. ... > A request to send data to the computer running IIS has failed. ...
    (microsoft.public.sqlserver.ce)
  • Re: upsizing to sql 2005
    ... the word SERVER in it, ... You can access to the database by multiple means (Access, ... and how does it update the SQL database with the new records in Access? ... Query Name: Arcadia - ARC ...
    (microsoft.public.access.queries)
  • Re: Linked Tables in Access
    ... any use of SQL Passthru, Linked Tables or any other use of MDB / MDE ... server, or would I also need to convert *those* queries to passthrough ... I've been trying to understand why Access database files become corrupt. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Trouble Getting VS.Net 2003 WalkThroughs MSDE Connection
    ... Config Tool of SQL Server? ... > link to download the PUBs database. ... >>> Setup and they directed me to install MSDE and they attached a ...
    (microsoft.public.sqlserver.msde)