2013年9月26日星期四

java how to connect sql server2008


learning java connect to the database , the following problems encountered

adding that three packets before the question is just : java.lang.ClassNotFoundException: jdbc.microsoft.sqlserver :/ / 127.0.0.1:1433; databaseName = spdb1


added followed by : java.sql.SQLException: No suitable driver found for jdbc.microsoft.sqlserver :/ / 127.0.0.1:1433; databaseName = spdb1

requested understand friends , heroes tell me , hoping to understand the point to say thank you !

------ Solution ------------------------------------ --------
no suitable driver . com.microsoft.jdbc.sqlserver.SQLServerDriver
------ Solution --------------- -----------------------------
project configuration to increase library file
------ For reference only ---------------------------------------
quickly hung up . . . They might engage in a day ! ! . . . . . . . Hey novices. . . . . . . . . . . . . . 00,
------ For reference only ------------------------------------ ---
to that can be used under or how to use ah put where I put JDBC2.0, 3.0,4.0 ; they have made of them. . . . . Depressed ah

------ For reference only ---------------------------------- -----
Although now a .... but still thankyousomuch ^ ^

没有评论:

发表评论