Backup/Restore locks up EM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    Backup/Restore locks up EM

    When I am trying to use backup or restore from the EM, a dialog box
    never pops up, and the EM interface locks up. Has anyone else had
    problems like this? Looks like all other functions from EM are
    working fine.

    Thanks,
    Dave
  • Greg D. Moore \(Strider\)

    #2
    Re: Backup/Restore locks up EM


    "Dave" <nospan@nospam. com> wrote in message
    news:qejpa01m61 e23dpsud9j866lm 6cg9itfm8@4ax.c om...[color=blue]
    > When I am trying to use backup or restore from the EM, a dialog box
    > never pops up, and the EM interface locks up. Has anyone else had
    > problems like this? Looks like all other functions from EM are
    > working fine.[/color]

    Yeah I've noticed that. Not sure if the latest SP fixes that or not.

    [color=blue]
    >
    > Thanks,
    > Dave[/color]


    Comment

    • Erland Sommarskog

      #3
      Re: Backup/Restore locks up EM

      Dave (nospan@nospam. com) writes:[color=blue]
      > When I am trying to use backup or restore from the EM, a dialog box
      > never pops up, and the EM interface locks up. Has anyone else had
      > problems like this? Looks like all other functions from EM are
      > working fine.[/color]

      The obvious workaround is to learn the syntax for BACKUP and RESTORE
      and run them from Query Analyzer...


      --
      Erland Sommarskog, SQL Server MVP, sommar@algonet. se

      Books Online for SQL Server SP3 at
      SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

      Comment

      • Greg D. Moore \(Strider\)

        #4
        Re: Backup/Restore locks up EM


        "Erland Sommarskog" <sommar@algonet .se> wrote in message
        news:Xns94F16AF F43D8Yazorman@1 27.0.0.1...[color=blue]
        > Dave (nospan@nospam. com) writes:[color=green]
        > > When I am trying to use backup or restore from the EM, a dialog box
        > > never pops up, and the EM interface locks up. Has anyone else had
        > > problems like this? Looks like all other functions from EM are
        > > working fine.[/color]
        >
        > The obvious workaround is to learn the syntax for BACKUP and RESTORE
        > and run them from Query Analyzer...[/color]


        Except, that doesn't solve the problem he's referring to. Or at least the
        one I'm having.

        I have a restore job that runs each day (basically takes a backup of one
        server and restores it to a 2nd).

        Takes 4-5 hours. I've discovered that during the restore, SQL EM just won't
        respond. I think somehow the select statement it must be doing in the
        background to get the list of databases is being blocked by the RESTORE.
        (actually thinking about this, I'm pretty sure this IS the case since I
        remember figuring this out via sp_who2).

        I haven't seen this problem with the BACKUP statement (which makes sense
        since the DB is online during a backup. :-)

        [color=blue]
        >
        >
        > --
        > Erland Sommarskog, SQL Server MVP, sommar@algonet. se
        >
        > Books Online for SQL Server SP3 at
        > http://www.microsoft.com/sql/techinf...2000/books.asp[/color]


        Comment

        • Ian Stocks

          #5
          Re: Backup/Restore locks up EM

          Dave wrote:[color=blue]
          > When I am trying to use backup or restore from the EM, a dialog box
          > never pops up, and the EM interface locks up. Has anyone else had
          > problems like this? Looks like all other functions from EM are
          > working fine.[/color]

          Could this be your problem?



          Ian.


          Comment

          • Erland Sommarskog

            #6
            Re: Backup/Restore locks up EM

            Greg D. Moore (Strider) (mooregr_delete th1s@greenms.co m) writes:[color=blue]
            > I have a restore job that runs each day (basically takes a backup of one
            > server and restores it to a 2nd).
            >
            > Takes 4-5 hours. I've discovered that during the restore, SQL EM just
            > won't respond. I think somehow the select statement it must be doing in
            > the background to get the list of databases is being blocked by the
            > RESTORE. (actually thinking about this, I'm pretty sure this IS the case
            > since I remember figuring this out via sp_who2).[/color]

            This does not sound right to me. I did a quick test on our development
            server, and ran Enterprise Manager against that server without a problem.
            I could even expand the node for that database. When I started to look at
            objects, I did of course get an error message, but EM never stopped
            responding. True, this was a two-minute restore, but I can't see that the
            length would matter.

            Could you give more details? Do you see blocking in Query Analyzer
            with sp_who when it happens? In such case what does DBCC INPUTBUFFER say?

            --
            Erland Sommarskog, SQL Server MVP, sommar@algonet. se

            Books Online for SQL Server SP3 at
            SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

            Comment

            • Greg D. Moore \(Strider\)

              #7
              Re: Backup/Restore locks up EM


              "Erland Sommarskog" <sommar@algonet .se> wrote in message
              news:Xns94F250F 3F2AYazorman@12 7.0.0.1...[color=blue]
              > Greg D. Moore (Strider) (mooregr_delete th1s@greenms.co m) writes:[color=green]
              > > I have a restore job that runs each day (basically takes a backup of one
              > > server and restores it to a 2nd).
              > >
              > > Takes 4-5 hours. I've discovered that during the restore, SQL EM just
              > > won't respond. I think somehow the select statement it must be doing in
              > > the background to get the list of databases is being blocked by the
              > > RESTORE. (actually thinking about this, I'm pretty sure this IS the case
              > > since I remember figuring this out via sp_who2).[/color]
              >
              > This does not sound right to me. I did a quick test on our development
              > server, and ran Enterprise Manager against that server without a problem.
              > I could even expand the node for that database. When I started to look at
              > objects, I did of course get an error message, but EM never stopped
              > responding. True, this was a two-minute restore, but I can't see that the
              > length would matter.
              >
              > Could you give more details? Do you see blocking in Query Analyzer
              > with sp_who when it happens? In such case what does DBCC INPUTBUFFER say?[/color]

              I'll have to try it again tomorrow if I get a chance, but as I recall, it's
              during a restore of a DB to our SQL 7.0 server.

              And it may only be the first time EM is opened.

              Like I say, it's strange, but hasn't been a big enough problem for me to
              investigate beyond the original problem.

              And yes, I did a sp_who2 active and found the blocking SPID. A DBCC
              INPUTBUFFER on the spid showed the restore.

              [color=blue]
              >
              > --
              > Erland Sommarskog, SQL Server MVP, sommar@algonet. se
              >
              > Books Online for SQL Server SP3 at
              > http://www.microsoft.com/sql/techinf...2000/books.asp[/color]


              Comment

              • Erland Sommarskog

                #8
                Re: Backup/Restore locks up EM

                Greg D. Moore (Strider) (mooregr_delete th1s@greenms.co m) writes:[color=blue]
                > I'll have to try it again tomorrow if I get a chance, but as I recall,
                > it's during a restore of a DB to our SQL 7.0 server.[/color]

                And EM is SQL2000 or SQL7?
                [color=blue]
                > And yes, I did a sp_who2 active and found the blocking SPID. A DBCC
                > INPUTBUFFER on the spid showed the restore.[/color]

                I was more interested in what the blocked spid was up to.


                --
                Erland Sommarskog, SQL Server MVP, sommar@algonet. se

                Books Online for SQL Server SP3 at
                SQL Server 2025 redefines what's possible for enterprise data. With developer-first features and integration with analytics and AI models, SQL Server 2025 accelerates AI innovation using the data you already have.

                Comment

                • Greg D. Moore \(Strider\)

                  #9
                  Re: Backup/Restore locks up EM


                  "Erland Sommarskog" <sommar@algonet .se> wrote in message
                  news:Xns94F35FA A3EE57Yazorman@ 127.0.0.1...[color=blue]
                  > Greg D. Moore (Strider) (mooregr_delete th1s@greenms.co m) writes:[color=green]
                  > > I'll have to try it again tomorrow if I get a chance, but as I recall,
                  > > it's during a restore of a DB to our SQL 7.0 server.[/color]
                  >
                  > And EM is SQL2000 or SQL7?
                  >[color=green]
                  > > And yes, I did a sp_who2 active and found the blocking SPID. A DBCC
                  > > INPUTBUFFER on the spid showed the restore.[/color]
                  >
                  > I was more interested in what the blocked spid was up to.[/color]

                  Ah good point. I THINK it was doing a select against the sysdatabases
                  table, but I'll have to check later today.

                  [color=blue]
                  >
                  >
                  > --
                  > Erland Sommarskog, SQL Server MVP, sommar@algonet. se
                  >
                  > Books Online for SQL Server SP3 at
                  > http://www.microsoft.com/sql/techinf...2000/books.asp[/color]


                  Comment

                  • Greg D. Moore \(Strider\)

                    #10
                    Re: Backup/Restore locks up EM


                    "Greg D. Moore (Strider)" <mooregr_delete th1s@greenms.co m> wrote in message
                    news:HSksc.7997 6$hY.3322@twist er.nyroc.rr.com ...[color=blue]
                    >
                    > "Erland Sommarskog" <sommar@algonet .se> wrote in message
                    > news:Xns94F35FA A3EE57Yazorman@ 127.0.0.1...[color=green]
                    > > Greg D. Moore (Strider) (mooregr_delete th1s@greenms.co m) writes:[color=darkred]
                    > > > I'll have to try it again tomorrow if I get a chance, but as I recall,
                    > > > it's during a restore of a DB to our SQL 7.0 server.[/color]
                    > >
                    > > And EM is SQL2000 or SQL7?
                    > >[color=darkred]
                    > > > And yes, I did a sp_who2 active and found the blocking SPID. A DBCC
                    > > > INPUTBUFFER on the spid showed the restore.[/color]
                    > >
                    > > I was more interested in what the blocked spid was up to.[/color]
                    >
                    > Ah good point. I THINK it was doing a select against the sysdatabases
                    > table, but I'll have to check later today.[/color]

                    Ok, finally remembered to do it.

                    The SPID doing the restore:
                    RPC "master"."dbo". "restore_fo o" -- no real surprise here. this is the
                    stored proc doing the work.

                    The blocked SPID from SQL EM (2000) against the DB (SQL 7.0)

                    select name, DATABASEPROPERT Y(name, N'IsDetached'), (case when
                    DATABASEPROPERT Y(name, N'IsShutdown') is null then -1 else
                    DATABASEPROPERT Y(name, N'IsShutdown') end), DATABASEPROPERT Y(name,
                    N'IsSuspect'), DATABASEPROPERT Y(name, N'IsOffline'), D



                    [color=blue]
                    >
                    >[color=green]
                    > >
                    > >
                    > > --
                    > > Erland Sommarskog, SQL Server MVP, sommar@algonet. se
                    > >
                    > > Books Online for SQL Server SP3 at
                    > > http://www.microsoft.com/sql/techinf...2000/books.asp[/color]
                    >
                    >[/color]


                    Comment

                    Working...