I am using netbeans ide with MS-SQL 2000 Server. My problem is that
When I am using
Data is shown on command prompt but when i am using rs.first() or rs.Previous() or rs.last() then it shows error on it
com.microsoft.sqlserver.jdbc.SQLServerException: The requested operation is not supported on forward only result sets.
BUT WHEN I CHANGE THE STATEMENT LIKE
com.microsoft.sqlserver.jdbc.SQLServerException: The TDS protocol stream is not valid.
OR WHEN I CHANGE THE STATEMENT LIKE
com.microsoft.sqlserver.jdbc.SQLServerException: The TDS protocol stream is not valid.
OR WHEN I CHANGE THE STATEMENT LIKE
com.microsoft.sqlserver.jdbc.SQLServerException: The requested operation is not supported on forward only result sets.
OR WHEN I CHANGE THE STATEMENT LIKE
com.microsoft.sqlserver.jdbc.SQLServerException: The TDS protocol stream is not valid.
LAST but not least: While using INSERT,UPDATE,DELETE cnn.createStatement() is working perfectly.
I am using following jar files
sqljdbc4.jar
jtds-1.2.5.jar
I do not know where i make mistake? Can anybody please help me out in solving this problem.
Love is GOD and GOD is Love.<br /> <br />Anand Karia<br />Manager I.T<br />Artistic Garment Ind. Pvt. Ltd<br />MSC (Computer Science)
I am using following jar files
sqljdbc4.jar
jtds-1.2.5.jar
That is two distinct driver implementations. Your errors suggest you are not using jTDS, so I would remove that from your classpath, or change to using jTDS and drop sqljdbc4.jar. jTDS supports forward only result sets.