Home > Database > Mysql Tutorial > body text

java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserv

WBOY
Release: 2016-06-07 15:51:46
Original
1575 people have browsed it

SQL Server 2000 JDBC driver使用:"com.microsoft.jdbc.sqlserver.SQLServerDriver" SQL Server 2005 and 2008 JDBC drive使用:" com.microsoft.sqlserver.jdbc.SQLServerDriver " 而且URL prefix也从"jdbc:microsoft:sqlserver://"改为" jdbc:sqlserver:/

SQL Server 2000 JDBC driver使用:"com.microsoft.jdbc.sqlserver.SQLServerDriver"

SQL Server 2005 and 2008 JDBC drive使用:"com.microsoft.sqlserver.jdbc.SQLServerDriver"

而且URL prefix也从"jdbc:microsoft:sqlserver://"改为"jdbc:sqlserver://"了。

 

From:http://blogs.msdn.com/jdbcteam/archive/2007/06/15/java-lang-classnotfoundexception-com-microsoft-jdbc-sqlserver-sqlserverdriver.aspx

 

下面是一个例子,已经封装到函数:

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template