[V4MD MAC] throwout and unregister

Igor Gomon giv at tlc.kherson.ua
Sat Apr 2 00:54:58 CST 2005


> Igor, comments ?
> It seems to me we can throw out files of closed db...
> Or you want to say that db under server always is opened?
Actually we can do this if db is not in use,  i.e. when number of 
active connections to this database is 0. Otherwise, database will 
be just marked as deleted and will be actually deleted only after
disconnection of all clients.

> > example runs "only" one time, the second time an error occurs, telling
> > that db already exists which is correct.
> 
> It is possible to trash db files manually.
> So Vserver will create them again without complains.
> 
> > so i tried a small script:
> > 
> > on unregisterDB
> >    VServer = new(xtra "Vserver", "localhost", "sa", "sa")
> >    if not objectP(VServer) then
> >      beep
> >      alert "Cannot set reference to VServer Xtra!"
> >    end if
> >   if objectP(gDb) then
> > gDB.close()
> > gDB=void
> > end if 
> >    VServer.unregisterDatabase("Database1.vdb")
> > end
> > 
> > the script gives me the error: ERROR: 394504
> > 
> > can i readout those errormessages via VServer? and how can i get rid of
> > registered databases?
> 
> Igor ?
I will check this.

-- 
Best regards,
Igor Gomon
-------------------------------------------------------------
e-mail: giv at tlc.kherson.ua
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina




More information about the Valentina mailing list