Re: Restore leaves DB in Loading state

From: Serena (Serena_at_discussions.microsoft.com)
Date: 10/04/04


Date: Mon, 4 Oct 2004 05:43:01 -0700

Hi - I have exactly the same problem, with the standby database in a
state of loading after the database restore - rather than in read only.
I can run each step in the job manually and it works fine - only when
run from the remote server does it seem to fail.

Any help would be appreciated.

Thanks,
Serena.

"Geoff N. Hiten" wrote:

> 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: Migration ?
    ... I've tried every way I can think of trying to restore the master database. ... Will a restore on the SQL ... Install a SQL Server failover cluster instance ...
    (microsoft.public.sqlserver.clustering)
  • CREATE AGGREGATE failed because type Concatenate does not conform to UDAGG specification due to meth
    ... Now register the assembly and the aggregate in the SQL Server database you want ... I'm trying to do some CLR integration with sql server 2005. ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL restore sets password to Null
    ... Mapping Logins & SIDs after a Restore ... How to Resolve Permission Issues When a Database Is Moved Between SQL ... Looking for a SQL Server replication book? ... Steve wrote:> I have to move a sql database from one server to another - I backed up my> database in enterprise manager by selecting the database then clicking on the> backup database option. ...
    (microsoft.public.sqlserver.server)
  • Re: How do i move an SQLDatabase to another location?
    ... I went to my clients and installed SQL Server ... Express and copied my database to the same location it was in while i was ... knowing that i can bring a database with me and install ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: unable to start SQL Service ... error code 3417
    ... How about just create a new instance and restore databases to the new instance? ... I wouldn't go with restoring master from another instance. ... The supported route is to rebuild your master database, start SQL Server in single user mode, ...
    (microsoft.public.sqlserver.server)

Loading