Home  >  Article  >  Database  >  java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserv

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

WBOY
WBOYOriginal
2016-06-07 15:51:461573browse

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

 

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

Statement:
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