loading of multiple driver
In a server class while loading the driver
If I do -
Class.forName("driver1");
Class.forName("driver2");
Where driver1 and driver2 are two different drivers like Sybase driver,or Oracle driver and both driver present .
If I try to execute a simple SQl query ,which driver it will use ?
[374 byte] By [
Rastoghaa] at [2007-11-27 8:43:56]

# 1
> In a server class while loading the driver
> If I do -
> Class.forName("driver1");
> Class.forName("driver2");
>
> Where driver1 and driver2 are two different drivers
> like Sybase driver,or Oracle driver and both driver
> present .
>
> If I try to execute a simple SQl query ,which driver
> it will use ?
To execute a query, you need to create a statement. To create a statement, you need to create a connection. While creating the connection, you specify the database to which you are connecting.
# 2
> To execute a query, you need to create a statement.
> To create a statement, you need to create a
> connection. While creating the connection, you
> specify the database to which you are connecting.
Ipso Facto, for those a little "connect the dots" challenged, there is no conflict and no problem.
;-)