Hi Matthias,
> Okay. That's a piece of information I've been missing. I checked the
> Dev Guide but didn't find HSQL listed in the table of drivers and
> since the table is prefixed with "Below is a list of all available
> drivers." I concluded that storing data directly in ODB files is
> special functionality implemented outside of the standard driver
> framework. I think I'll file an issue for that omission.
Okay, didn't know there was a list of all drivers in the DevGuide.
Sounds strange and not very fruitful.
>> The cleaner solution would be to de-register this driver at the global
>> service manager. This is needed once, and should be possible with a
>> Basic macro, but I don't have any code at hand.
>
> The following code will do it
> -----------------
> Dim oPathSubst as Object
> oPathSubst = createUnoService( "com.sun.star.util.PathSubstitution" )
> Dim sRegistryLocation As String
> sRegistryLocation = oPathSubst.substituteVariables( _
> "$(prog)/services.rdb", true )
> Dim oRegistry as Object
> oRegistry = createUnoService( "com.sun.star.registry.SimpleRegistry" )
> oRegistry.open( sRegistryLocation, false, false )
> Dim oKey as Object
> oKey = oRegistry.getRootKey()
> oKey.deleteKey("/IMPLEMENTATIONS/com.sun.star.sdbcx.comp.hsqldb.Driver")
> oRegistry.close()
> ----------------------
That deletes part of this information - as you saw, there's something
left. You can either delete the other remains manually, or de-register
the complete component. Again, I'm not sure how to do this, but
something around XImplementationRegistration should do.
And now that this interface crawled up in my mind ...
Alternatively (and probably more future-prove), use
regcomp -revoke -r services.rdb -c hsqldb2.dll
on the command line, while OOo is not running. This should completely
get rid of this component.
Ciao
Frank
--
- Frank Schönheit, Software Engineer [EMAIL PROTECTED] -
- Sun Microsystems http://www.sun.com/staroffice -
- OpenOffice.org Base http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]