As noted the pii's will be down next week. Since this will disrupt the use of the RUNDB a copy was moved to rcas0005. Thanks to foresight it is not too difficult to use within the exsiting Brat - The following snippet was tested and works. In addition you must edit the .bratdbrc file and add rcas0005.rcf.bnl.gov RUNDB query xxx with xxx the query users password. // Un-comment if you need access to database if (!mainDb->Connect()) return; if (!mainDb->ConnectToCalib("query")) return; // // To access the RUNDB on the rcas rather than the pii3 // use the following piece of code // Bool_t useRcas = kTRUE; if(useRcas) { BrRunsDb *runDb = BrRunsDb::Instance(); runDb->SetName("runs"); runDb->SetUserName("query"); runDb->SetHostName("rcas0005.rcf.bnl.gov"); runDb->SetDbName("RUNDB"); runDb->Connect(); } else { if (!mainDb->ConnectToRun("query")) return; }