SqlServer :Invalid call Statement method: {0}
今天编写了一个分页,在调试中出现了如下的错误:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid call Statement method: {0}
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
at com.wmsz.pub.PagerHelp.initialize(PagerHelp.java:37)
at com.wmsz.business.UsersDaoImpl.findAllUsers(UsersDaoImpl.java:62)
at com.wmsz.business.UsersServiceImpl.findAllUsers(UsersServiceImpl.java:67)
at com.wmsz.servlet.FindAllUserServlet.doPost(FindAllUserServlet.java:51)
at com.wmsz.servlet.FindAllUserServlet.doGet(FindAllUserServlet.java:19)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:619)
[13:46:17.609] {http--8080-4} java.lang.NullPointerException
[13:46:17.609] {http--8080-4} at com.wmsz.pub.PagerHelp.getPage(PagerHelp.java:73)
[13:46:17.609] {http--8080-4} at com.wmsz.business.UsersDaoImpl.findAllUsers(UsersDaoImpl.java:67)
[13:46:17.609] {http--8080-4} at com.wmsz.business.UsersServiceImpl.findAllUsers(UsersServiceImpl.java:67)
[13:46:17.609] {http--8080-4} at com.wmsz.servlet.FindAllUserServlet.doPost(FindAllU
相关文档:
using System.Data.SqlClient;
using System.Data.OleDb;
private void button1_Click(object sender, EventArgs e)
{
OleDbConnection conn = null;
try
&nbs ......
In the latest installment of the SQL Server interview questions, we will outline questions suitable for a DBA interview to assess the candidates skills related to SQL Server system databases. In this tip, the questions are there to read, but the answers are intentionally hidden to really test your s ......
SqlServer启动参数
1.Sqlservr.exe运行参数。
SqlServer的启动可以为Windows服务方式(默认),也可以以应用程序方式启动。下面介绍sqlservr.exe以应用程序方式启动时的参数问题。
sqlservr应用程序用法:
sqlservr[-sinstance_name][-c][-dmaster_path][-f]
[-eerror_log_path][-lmaster_log_path][-m]
[-n][-Ttrace ......
全局变量是SQL Server系统内部事先定义好的变量,不用用户参与定义,对用户而言,其作用范围并不局限于某一程序,而是任何程序均可随时调用。全局变量通常用于存储一些SQL Server的配置设定值和效能统计数据。
SQL Server一共提供了30多个全局变量,本节只对一些常用变量的功能和使用方法进行介绍。全局变量的名称都是以 ......
--语 句 功 能
--数据操作
SELECT --从数据库表中检索数据行和列
INSERT --向数据库表添加新数据行
DELETE --从数据库表中删除数据行
UPDATE --更新数据库表中的数据
--数据定义
CREATE TABLE --创建一个数据库 ......