result set type is TYPE_FORWARD_ONLY_token odbcJava调用存储过程的时候,总是报result set type is TYPE_FORWARD_ONLY 的错误 驱动是通过odbc数据源来实现的而改用jdbc直连的话这个问题就没有了 前提是结果集的类

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 04:43:29
resultsettypeisTYPE_FORWARD_ONLY_tokenodbcJava调用存储过程的时候,总是报resultsettypeisTYPE_FORWARD_ONLY的错误驱动是通过o

result set type is TYPE_FORWARD_ONLY_token odbcJava调用存储过程的时候,总是报result set type is TYPE_FORWARD_ONLY 的错误 驱动是通过odbc数据源来实现的而改用jdbc直连的话这个问题就没有了 前提是结果集的类
result set type is TYPE_FORWARD_ONLY_token odbc
Java调用存储过程的时候,总是报result set type is TYPE_FORWARD_ONLY 的错误 驱动是通过odbc数据源来实现的
而改用jdbc直连的话这个问题就没有了
前提是结果集的类型我已经设置成 result.TYPE_SCROLL_INSENSITIVE的类型了,
还有就是 sql server2000 的 sp4补丁我已经打过了,但是有的java项目直连sqlserver2000 的时候还是会报 error esblishing socket 错误

result set type is TYPE_FORWARD_ONLY_token odbcJava调用存储过程的时候,总是报result set type is TYPE_FORWARD_ONLY 的错误 驱动是通过odbc数据源来实现的而改用jdbc直连的话这个问题就没有了 前提是结果集的类
有没有类似
rs.last()
int i = rs1.getRow();
的代码?
1这是你定义指针类型的时候只定义成了,向前移动的类型.
2设定结果集回滚.
connect=dataSource.getConnection();
Statement stmt=connect.createStatement();
ResultSet rs=stmt.executeQuery(strSql);
rs.last();
这样写之后会报rs.last()有错,后来看到last()方法:
Throws:
SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY
后来查明原因果然是因为the result set type is TYPE_FORWARD_ONLY,查明的具体过程是:System.out.println(rs.getType());看到打印出来的结果是1003,后到JDK的src里面查到int TYPE_FORWARD_ONLY = 1003;这句话,说明the result set type is TYPE_FORWARD_ONLY.
那么解决办法就是要把the result set type 不要设成 TYPE_FORWARD_ONLY,后来在网上查到解决办法是:
connect=dataSource.getConnection();
Statement stmt=connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
//Statement stmt=connect.createStatement(1004,1007);
ResultSet rs=stmt.executeQuery(strSql);
rs.last();

result set type is TYPE_FORWARD_ONLY_token odbcJava调用存储过程的时候,总是报result set type is TYPE_FORWARD_ONLY 的错误 驱动是通过odbc数据源来实现的而改用jdbc直连的话这个问题就没有了 前提是结果集的类 How to type Chinese againwhen I set something ,I made a mistaken .as a result ,I only can type English ,unable to type Chinese. There is no result type defined for type 'input' mapped with name 'success'.Did you mean 'input'?There is no result type defined for type 'input' mapped with name 'success'.Did you mean 'input'? This new type of TV set is very expensive.(改为感叹句) can you tell me how to set the words type,yours is so cool 翻译 There is no result type defined for type 'json' mapped with name 'emplist'.Did you mean 'json'?-There is no result type defined for type 'json' mapped with name 'emplist'.Did you mean 'json'?- result - file:/D:/java/apache-tomcat-6.0.30/apache-tomcat struts2 零配置返回type=json出错@Action(value = /image,results ={@Result(name=success,type=json,params = {root,result })})tomcat启动解析@Action、、、时,type类型出错错误:The Result type [json] which is defined in the Re A:Is that a ______TV set?B:No,it isn't .It 's a color set. job date time type identification duration pages result什么意思 personality type is destiny 1 This is a photo of the power station that _____ in my hometown.A has set up B has been set up C is setting up D has being set up2 Nothing more was heard of him,______ people thought that he was dead.A with the result that B as a result C as a resul *综合语法练习I was i deep thought ( ) that I didn't hear the doorbell.A.as a result B.as the result C.with the result D.the result is WM-How to clear the difference in 999 storage typeHi gurus,It raise qty difference when TO confirm. I set the difference into 999 storage type and a bin name like TO no.. My question is how to clear the difference for 999? Which T-code for this trans The May Day tiring,staying up late is the result of a sore throat and swollen eyes,but also rewarding,the new company was set up! what type of email do you want to set up? I can't type the character 是什么意思?还有:,The homework wasn't hand , what is to be done?请翻译 Don't need to worry about the result of your test 同义句There is ____ _____ to worry about the result of your test My father is much______(well)RT“I can`t wait to know the result。”等于 I ___ ___ wait to know the result