There is no script available to close Db. But b4 setting to new Db you can set the Previous one to Nothing. Ex: set db = Nothing Set db = session.getdatabase(server,dbpath) this would make the db to point to nothing.Hope this will solve ur problem