行 25: 行 26: SqlConnection cn= new SqlConnection("server=.database=login"); 行 27: cn.Open(); 行 28: SqlCommand cmd =new SqlCommand("select count(*) from login where useName='"+userName+"' and usePwd='"+userPwd+"'",cn); 行 29:
"."是本地访问呀,用windows 集成访问不用用户和密码的吧~?