var edge = require('edge');
var params = {
connectionString: "Server=DESKTOP-QUUGSCT\SQLEXPRESS;Database=tempdb;Integrated Security=True",
source: "Select * From dbo.test"
};
var getData = edge.func('sql', params);
getData(null, function (error, result) {
if (error) { console.log(error); return; }
if (result) {
console.log(result);
}
else {
console.log("No results");
}
});
我在创建有效的连接字符串时遇到问题。
DESKTOP-QUUGSCT\SQLEXPRESS