ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    DB Help on SQL Server

    IT Discussion
    sql server database
    3
    5
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by

      I have some DB corruption and I don't have a good recent backup. All data appears to be fine, but when I run a DBCC CHECKDB I get this

      Msg 8905, Level 16, State 1, Line 1
      Extent (1:1534320) in database ID 7 is marked allocated in the GAM, but no SGAM or IAM has allocated it.

      When I google the error I find a Microsoft Article about the error which leads me to this table. https://technet.microsoft.com/en-us/library/Aa275767(v=SQL.80).aspx

      [img]http://i.imgur.com/jhpHwCq.png[/img]

      Can someone help me better understand this error and what impact it could have? It appears everything is working properly. I have tried copying the DB to a test server and running DBCC CheckDB ('Database', REPAIR_ALLOW_DATA_LOSS) and even that will not remove the Allocation Error.

      1 Reply Last reply Reply Quote 3
      • JaredBuschJ
        JaredBusch
        last edited by

        Never ran across an error like that.

        For a long way around solution, if you do not have a recent backup, do you have an old one?

        Restore it as a differently named DB and see if it is corrupt also.

        If not, then run something like RedGate SQL Compare and check structure is all the same.

        If/Once the structure is the same, run a job to export all the data from the live DB to the TestDB

        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller
          last edited by

          Looks like hardware issues are the expected source.

          IRJI 1 Reply Last reply Reply Quote 0
          • IRJI
            IRJ @scottalanmiller
            last edited by

            @scottalanmiller said:

            Looks like hardware issues are the expected source.

            This goes back to the VMWare issue that I posted about before.

            1 Reply Last reply Reply Quote 0
            • IRJI
              IRJ
              last edited by

              If anyone is interested, Robert for Microsoft on Spiceworks was a huge help on this issue. He has really helped me narrow it down and given me a possible resolution.

              http://community.spiceworks.com/topic/1175896-allocation-error-in-sql-database

              1 Reply Last reply Reply Quote 2
              • 1 / 1
              • First post
                Last post