According to this page, the class is called SQLServerDriver
and not SqlServerDriver
. Case is important!
So, try:
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Note that with newer versions of JDBC, it's not necessary to load the driver class explicitly with Class.forName(...)
. The page I linked to explicitly explains that you don't have to do it. So, you can just remove the whole line and then it should work.