Hi,friends
I used M$ jdbc driver to manipulate the SQL server 2000 RDBMS.It runs faster than odbc-jdbc bridge but when used in a SessionBean i encountered the following problem:
...
con = getConnection();
stmt = con.prepareStatement("select * from coffees"
;
...
the prepareStatement worked fine! The coffees table in sql2000 has COL_NAME, PRICE fields.
However,
stmt = con.prepareStatement("select * from coffees where (COF_NAME=?)"
;
will throw "Unable to create PreparedStatement!" exception !!!
I was frustrated now.please help me figure it out!
Best Regards!
IPO_z@cmmail.com
Garbage in,Garbage out
I used M$ jdbc driver to manipulate the SQL server 2000 RDBMS.It runs faster than odbc-jdbc bridge but when used in a SessionBean i encountered the following problem:
...
con = getConnection();
stmt = con.prepareStatement("select * from coffees"
...
the prepareStatement worked fine! The coffees table in sql2000 has COL_NAME, PRICE fields.
However,
stmt = con.prepareStatement("select * from coffees where (COF_NAME=?)"
will throw "Unable to create PreparedStatement!" exception !!!
I was frustrated now.please help me figure it out!
Best Regards!
IPO_z@cmmail.com
Garbage in,Garbage out