db2下存储过程配置求解 请贴出调用的代码,还有看看Online Book 里面有很多例子 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.math.BigDecimal;import java.sql.*;public class JSBDDBBean{ public String getSQLString() { return SQLString; } public String getURL() { return URL; } public void setURL(String s) { URL = s; } public void setPassword(String s) { password = s; } public String getDriver() { return driver; } public void setDriver(String s) { driver = s; } public String getUserID() { return userID; } public void setUserID(String s) { userID = s; } public void execute() throws Exception, SQLException { try { Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance(); } catch(Exception exception) { throw exception; } try { conn = DriverManager.getConnection(URL, userID, password); sqlStatement = conn.prepareCall(getSQLString()); sqlStatement.execute(); sqlStatement.close(); conn.close(); return; } catch(SQLException sqlexception) { throw sqlexception; } } public JSBDDBBean() { SQLString = "CALL DB2ADMIN.PRO_PROC1()"; } protected String SQLString; protected String URL; protected String password; protected String driver; protected String userID; protected CallableStatement sqlStatement; protected Connection conn;} 应该不是调用的代码的问题,因为用此代码调用原来的存储过程仍然可用,但新建的存储过程都只能在db2下面调用,而用java调用就会报SQL1109N The specified DLL "DB2ADMIN.PRO_PROC1" could not be loaded的错 vb+sql2000操作时提示不能更新 数据库为只读 ? 如下SQL应该怎么写 这是乍回事呢?好像不应该吧? 在设置数据库访问权限时,打红色叉,打绿色勾,和什么都不打,各有什么区别? SQL递归问题 access数据库查询问题 有没有人在ssis中使用过db2的OLE数据源连接 case when..then..else..end问题 关于用SQL Server自定义字段和报表的问题???大家都可以来 SQL中列后在的奇怪字符不是空格那到底是什么? 如何在程序中查看一个表,有没有已知名称的字段,没有就增加? sql语句,进来look!
import java.sql.*;public class JSBDDBBean
{
public String getSQLString()
{
return SQLString;
} public String getURL()
{
return URL;
} public void setURL(String s)
{
URL = s;
} public void setPassword(String s)
{
password = s;
} public String getDriver()
{
return driver;
} public void setDriver(String s)
{
driver = s;
} public String getUserID()
{
return userID;
} public void setUserID(String s)
{
userID = s;
} public void execute()
throws Exception, SQLException
{
try
{
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
}
catch(Exception exception)
{
throw exception;
}
try
{
conn = DriverManager.getConnection(URL, userID, password);
sqlStatement = conn.prepareCall(getSQLString());
sqlStatement.execute();
sqlStatement.close();
conn.close();
return;
}
catch(SQLException sqlexception)
{
throw sqlexception;
}
} public JSBDDBBean()
{
SQLString = "CALL DB2ADMIN.PRO_PROC1()";
} protected String SQLString;
protected String URL;
protected String password;
protected String driver;
protected String userID;
protected CallableStatement sqlStatement;
protected Connection conn;
}
的错