String user="sa";
提示你,输入用户名和密码

解决方案 »

  1.   

    连接数据库的用户名为空啊,不是有提示吗!所以连接不允许啊!failed for user '(null)'. Reason: Not associated with a trusted
      

  2.   

    用sa登陆提示以下错误:
    连接数据库失败:java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServ
    er]Login failed for user 'sa'.
      

  3.   

    SQL SERVER2000的登陆方式是:
    Windows only  
    System account
      

  4.   

    连接数据库失败:java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServ
    er]Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection