小编F0r*_*00b的帖子

如何使用mssql模块从Node.JS使用Windows身份验证连接到SQL Server

嗨,我无法连接到在节点js中使用Windows身份验证的SQL服务器.我正在使用mssql模块.错误消息是:

[ConnectionError: Login failed for user ''. The user is not associated with a trusted SQL Server connection.]
name: 'ConnectionError',
message: 'Login failed for user \'\'. The user is not associated with a trusted SQL Server connection.',
code: 'ELOGIN' }
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

config = {
    server : "localhost\\MSSQLSERVER",
    database : "mydatabase",
    port : 1433
}

function loadDepts() {
    var conn = new sql.Connection(config);
    var request = sql.Request(conn);

    conn.connect(function(err) {
    if (err) {
        console.log(err);
        return;
    }

    request.query("select deptid, deptname from departments", function(err, …
Run Code Online (Sandbox Code Playgroud)

sql-server node.js npm

34
推荐指数
5
解决办法
4万
查看次数

按下按钮时查看密码edittext的值

当我单击按钮时,如何查看输入类型为"password"的edittext视图的值,当我释放按钮时,文本显示将返回到不可读的格式?就像当你点击密码字段旁边的"眼睛"时微软在Windows 8中所做的那样.

谢谢

android

15
推荐指数
3
解决办法
2万
查看次数

Firebase电子邮件说我的实时数据库有不安全的规则

我最近收到来自firebase的电子邮件,告诉我我的实时数据库有不安全的规则.这些是我设定的规则:

{
  "rules": {
    ".read": "auth != null",
    ".write": "auth != null"
 }
}
Run Code Online (Sandbox Code Playgroud)

这不是一个安全的规则吗?

电子邮件/密码是我启用的唯一登录方式.

firebase firebase-authentication firebase-realtime-database firebase-security-rules

9
推荐指数
2
解决办法
2909
查看次数