Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6

    Unanswered: Could not find database ID...

    I took some database from mproduction, updated and then restored to acceptance. I was trying to make my update as quick as possible so I dropped my originals and renamed my new ones...

    now I am getting this...

    "Could not find database ID"

    I have looked at a few things like ....

    http://msdn2.microsoft.com/en-us/lib...3(SQL.80).aspx

    but it ain't working and I have not been able to find the crossdatabase referencing object causing all of this pain using profiler and the QA.

    it's probably not a good idea to update the key on sysdatabases in master. anyone got any bright ideas.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  2. #2
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    Just run DBCC FREEPROCCACHE. There is a plan in memory that is based on the prior database ID of the database. Once that is gone, you should have no problems.

  3. #3
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    thanks. that did it. too much excitement for a monday morning. now I am crashing from my adrenaline rush.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •