Why I'm an old database connection fail?

Users questions:This is java and database using odbc connection management system for students to do. But I just can not get connected, who can tell me? Well, all my connections, I use direct connection, do not need to add a data source, right?
Experts answer:odbc JDBCODBC bridged connection is not it? StraightEven the first to add drivers (msbase.jar, mssqlserver.jar, msutil.jar) If you add these three files XP system, it would have to add drivers, it may be a firewall problem, you can try to shut the firewall. The main link code : Connectcon; Stringurl = ("JDBC: microsoft: sqlserver: ** localhost: 1433: DatabaseName = test"; Stringuser = "on"; St.ring password = ""; Class.forName = "com.microsoft.jdbc.sqlserver.SQLServerDriver"; con = DriverManager.getConnection(url,user,password);
  • This information provided by the users.Thanks!