Hi,all.
Can a connection be modified to change the username and password? I
have got a connection, it is better to modify it with new username and
password than creating a new one, for some special use.
"gotostudy" wrote...
> Can a connection be modified to change the username and password?
> I have got a connection, it is better to modify it with new username
> and password than creating a new one, for some special use.
It's not a requisite for a Connection to be able to do so (i.e. not
specified in the interface).
However, I believe some drivers have it implemented in their Connection
implementations.
To know if it's possible or not, you need to check the documentation for the
specific driver, or rather what it says about its Connection implementation.
If it *is* possible, you'll probably need to cast the Connection object to
the specifik type before you can use any "setUser" or "setPassword" on it.
// Bjorn A