[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference amcucs::ms-sqlsvr

Title:Microsoft SQL Server Support
Notice:Please Registar, Note #11
Moderator:AMCUCS::BETTS
Created:Tue Aug 23 1994
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:382
Total number of notes:1233

356.0. "SQL db "uniqueness"????" by DECIDE::LANGFELDT () Thu Mar 27 1997 10:51

    
    Scenario:
    
    1) Nt 4.0 SP2 w/ Hot Fix
    2) SQL Server 6.5 w/ SP1
    3) NT Cluster 1.1 (on 2 4100s)
    4) Created test database on SQL Server (named: newpub)
    5) Enrolled, failed over and back -- no problem
    6) Deleted database and devices, created new database called "Sales"
    7) Can't enroll database into cluster software because of error.
       Cluster support says this is a SQL problem, due to 
       "Uniqueness Error"
    
    8) All (seemingly) traces of the "newpub" database are gone, but
       it must be tracked somewhere.
    
    Any ideas?
    
    Thanks!
T.RTitleUserPersonal
Name
DateLines
356.1Look at the spt_fallback_* tablesMSE1::MASTRANGELOThu Mar 27 1997 13:3919
    
    The uniqueness problem stems from duplicate vstart and/or dbid entries
    in the spt_fallback_* tables.
    
    Look at the spt_fallback_db,_dev and _usg tables to see if there are 
    old entries pertaining to your test database.  
    
    select * from spt_fallback_db
    select * from spt_fallback_dev
    select * from spt_fallback_usg
    
    The easiest way to clean out the spt_fallback_* tables is to rebuild
    the master database.  Once you do that, rebuild your sales database on
    the shared storage and enroll it via the cluster administrator running 
    on the machine that is the primary machine for the database/group.
    
    After you enroll it, if you issue the above queries again, you should
    only see references to the sales database.
    
356.2Try withdrawing the bogus entryMSE1::MASTRANGELOThu Mar 27 1997 16:2321
    
    If you don't have the luxury of being able to rebuild the master
    database, you could try removing the bogus spt_fallback* table entries
    by "withdrawing" the bogus database from fallback support.
    
    1) Make sure the primary server owns the database/group
    2) On the secondary server, issue the following:
    	sp_fallback_withdraw_svr_db PrimaryName, Dbname
    3) On the primary server, issue the following:
    	sp_fallback_DEC_perm_svr_db PrimaryName, Dbname
    
    The sp_fallback_DEC_perm_svr_db procedure gets installed with Clusters
    for NT.
    
    If you look at the spt_fallback* tables now, the bogus entry should be
    gone.
    
    If you're still having the problem, rebuild the master database and
    you'll most likely have to re-install Clusters for NT (if the original
    test database was deleted and un-enrolled out of the proper sequence,
    there may be some remnants in the cfmd database).