嗨,我无法连接到在节点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) 当我单击按钮时,如何查看输入类型为"password"的edittext视图的值,当我释放按钮时,文本显示将返回到不可读的格式?就像当你点击密码字段旁边的"眼睛"时微软在Windows 8中所做的那样.
谢谢
我最近收到来自firebase的电子邮件,告诉我我的实时数据库有不安全的规则.这些是我设定的规则:
{
"rules": {
".read": "auth != null",
".write": "auth != null"
}
}
Run Code Online (Sandbox Code Playgroud)
这不是一个安全的规则吗?
电子邮件/密码是我启用的唯一登录方式.
firebase firebase-authentication firebase-realtime-database firebase-security-rules