以下内容在SSMS中运行良好。但是在Power BI中,我收到此错误,并且不知道为什么:
Microsoft SQL:“;”附近的语法不正确。
')'附近的语法不正确。
数据库= AdventureWorks
查询是:
var exec = require('child_process').execFile;
/**
* Function to execute exe
* @param {string} fileName The name of the executable file to run.
* @param {string[]} params List of string arguments.
* @param {string} path Current working directory of the child process.
*/
function execute(fileName, params, path) {
let promise = new Promise((resolve, reject) => {
exec(fileName, params, { cwd: path }, (err, data) => {
if (err) reject(err);
else resolve(data);
});
});
return promise;
}