使用 npm mssql 文档,我正在执行:
try {
let pool = await sql.connect("mssql://user:pass!@dbserver/db?encrypt=true");
let result = await pool.request().query("select * from dbo.db1.tbl");
console.dir(result);
} catch (err) {
console.log(err);
}
我得到这个神秘的(当我谷歌时)错误:
{ number: 40515,
state: 1,
class: 15,
message: 'Reference to database and/or server name in \'dbo.db1.tbl\' is not supported in this version of SQL Server.',
...
有什么建议么?