请教各位高手一下,我要用javaBean连接数据库,我在网上找了一个DataBase.java程序,然后再里边它连接的是MySQL,但是我要连接的是Microsoft SQL Server2000数据库,请帮我改一下,谢谢了,下边是连接MySQL数据库的部分代码:
public boolean connect(){
      try{
        Class.forName("org.gjt.mm.mysql.Driver").newInstance();
        String url ="jdbc:mysql://localhost/BookStore?user=wxy&useUnicode=true&characterEncoding=8859_1";
        conn=DriverManager.getConnection(url);
        stmt = conn.createStatement ();
       }catch(Exception ee){
        System.out.println("connect db error:"+ee.getMessage());
        return false;
       }
      return true;
    }
请帮我改成连接Microsoft SQL Server2000数据库的程序,我从书上找不到,各位帮帮忙,谢谢