Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MSSQL DB, bigint, preparedStatement

I'm trying to execute the following prepared statement:

-


pStmnt = connection.prepareStatement("select col1 from table1 where col2 = ?");

pStmnt.setLong(1, 45L);

//col 2 is a 'bigint' on the MSSQL 2000 database, hence setLong.

Resultset rs = pStmnt.executeQuery();

-


I do not get any exceptions, but just an empty resultset. I've verified that the query does return some rows if run from another tool.

If I were to go against an 'int' column or a 'varchar' column as part of the 'where' clause, the query runs just fine!!!

Could there be anything wrong with the 'bigint' type?!

I'm trying to run this on an EP6 SP2 iView.

thanks and your help is always appreciated,

Biju.

Former Member
Not what you were looking for? View more on this topic or Ask a question