jdbc 连接sql server 2000

来源:百度知道 编辑:UC知道 时间:2024/06/14 22:55:52
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" page session="true" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {font-size: x-large}
.style2 {font-size: xx-large}
.style3 {font-size: large}
-->
</style>
</head>

<body>
<table width="1006" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF99CC">
<!--DWLayoutTable-->
<tr

("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test","sa","573006");

"test" 似乎少个"

你也没说什么错误啊,错误信息也没给,估计又是什么驱动文件没加载吧,连接sqlserver还容易出现版本问题,可能是没打补丁,别的问题想不出来了,强烈建议上错误信息