楼上的有点可能。 Known problems --------------------- - For Windows NT4 users,if you have SP6 installed, you must upgrade to SP6a before the JDBC driver. - New SQLServer 2000 datatypes are not supported yet. - The method getTableName() requires a cursor or the "for browse" statement. - Calling stored procedures with output parameters from type binary or char produce output with value 0x00 and spaces cut. (e.g., you have a sp with the parameter "char(10) output" and the output value is "abc " you receive the value "abc").The following methods are not supported by this release: - Any ResultSet, PreparedStatement, or CallableStatement methods that accept parameters of datatype Array, Ref, Calendar, or Map. - DatabaseMetaData.getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) - ResultSet.refreshRow(). However, if the Statement is created using a resultset type of TYPE_SCROLL_SENSITIVE then the cursor for the ResultSet will be dynamic and refresh automatically. - ResultSetMetaData.getColumnClassName(int) - CallableStatement.registerOutParameter(int, int, String) - Connection.getTypeMap() 由于没有出错代码,只能给你贴这么多了。
______________^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^你检查一下你的是不是和上面一样
Connection conn = null;
conn = DriverManager.getConnection(url,user,password);
应该是null吧调试下,确定哪行出错
这个现象和奇怪的,同样的程序不一定什么时候有这个错误。
有遇到这个问题的兄弟吗?
Known problems
---------------------
- For Windows NT4 users,if you have SP6 installed, you must upgrade to SP6a before the JDBC
driver.
- New SQLServer 2000 datatypes are not supported yet.
- The method getTableName() requires a cursor or the "for browse" statement.
- Calling stored procedures with output parameters from type binary or char
produce output with value 0x00 and spaces cut. (e.g., you have a sp
with the parameter "char(10) output" and the output value is "abc "
you receive the value "abc").The following methods are not supported by this release:
- Any ResultSet, PreparedStatement, or CallableStatement methods
that accept parameters of datatype Array, Ref, Calendar, or Map.
- DatabaseMetaData.getUDTs(String catalog, String schemaPattern,
String typeNamePattern, int[] types)
- ResultSet.refreshRow(). However, if the Statement is created using
a resultset type of TYPE_SCROLL_SENSITIVE then the cursor for the
ResultSet will be dynamic and refresh automatically.
- ResultSetMetaData.getColumnClassName(int)
- CallableStatement.registerOutParameter(int, int, String)
- Connection.getTypeMap()
由于没有出错代码,只能给你贴这么多了。
马上结帖。
谢谢大家的帮助!