连接sql 2000数据库出错!!!!!!!
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
I:\Tomcat5.0\work\Catalina\localhost\myweb\org\apache\jsp\conn_jsp.java:49: illegal character: \12288
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
銆?銆?String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
^
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
I:\Tomcat5.0\work\Catalina\localhost\myweb\org\apache\jsp\conn_jsp.java:49: illegal character: \12288
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
銆?銆?String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
源码-------------------------------------------------------------
<%@ page language="java" contentType="text/html;charset=gb2312"%>
<%@ page import="Java.sql.*"%>
<html>
<body>
<% Class.forName("com.microsoft.JDBC.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
//word我的数据库的
String user="sa";
String password="";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from t_counter"; //t_counter 表
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
您的第一个字段内容为:<%=rs.getString(1)%>
您的第二个字段内容为:<%=rs.getString(2)%>
<%}%>
<%out.print("数据库操作成功,恭喜你");%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>
是什么问题啊,能帮我解决一下吗???
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
I:\Tomcat5.0\work\Catalina\localhost\myweb\org\apache\jsp\conn_jsp.java:49: illegal character: \12288
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
銆?銆?String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
^
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
I:\Tomcat5.0\work\Catalina\localhost\myweb\org\apache\jsp\conn_jsp.java:49: illegal character: \12288
An error occurred at line: 5 in the jsp file: /conn.jsp
Generated servlet error:
銆?銆?String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
源码-------------------------------------------------------------
<%@ page language="java" contentType="text/html;charset=gb2312"%>
<%@ page import="Java.sql.*"%>
<html>
<body>
<% Class.forName("com.microsoft.JDBC.sqlserver.SQLServerDriver").newInstance();
String url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=word";
//word我的数据库的
String user="sa";
String password="";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from t_counter"; //t_counter 表
ResultSet rs=stmt.executeQuery(sql);
while(rs.next()) {%>
您的第一个字段内容为:<%=rs.getString(1)%>
您的第二个字段内容为:<%=rs.getString(2)%>
<%}%>
<%out.print("数据库操作成功,恭喜你");%>
<%rs.close();
stmt.close();
conn.close();
%>
</body>
</html>
是什么问题啊,能帮我解决一下吗???
...全文
相关推荐
PB11连接sql2000数据库
通过以上步骤,您应该能够在PB10或PB11环境下成功地通过OLE DB连接到SQL Server 2000数据库。
ERWin如何连接数据库(SQL2000、Oracle 10g)
连接SQL Server 2000连接SQL Server 2000非常简单,只需要填入相应的参数即可。用户可以根据需要选择不同的数据库连接选项,例如选择数据库服务器、数据库名称、用户名和密码等。
VB使用OLE DB连接SQL Server数据库
本文介绍如何使用VB结合OLE DB技术连接SQL Server数据库,重点阐述了系统部署过程中的程序配置、数据库文件复制及SQL Server 2000的安全性设置方法,并指导通过企业管理器完成数据
MFC中ado连接SQL Server2000远程数据库
#### 二、使用ADO实现对SQL Server 2000的远程连接要实现VC++ (MFC) 应用程序中对SQL Server 2000的远程连接,可以遵循以下步骤:##### 1.
浅谈Delphi与SQL Server 2000数据库连接方法及其实现过程.pdf
标题和描述均提到了Delphi与SQL Server 2000数据库的连接方法及实现过程,这涉及到两个关键的技术:BDE(Borland Database Engine)和ADO(ActiveX Data


Web 开发
