Commit 948d136a authored by Leon's avatar Leon

upload

parent 1106bcba
var _db = require("topsin.database");
require("topsin.error");
_db.addConnection({
database_type: _db.DbType.mssql,
database_host: '114.95.32.229,21433',
database_name: 'pcb_biz',
database_user: 'dlzyc',
database_pwd: 'Dl1117*/*'
}, "SOURCE_DB");
try {
var r = _db.query("SOURCE_DB", function(query){
var r = query.selectValue("SELECT 1", {});
if (query.lastError().isValid()) {
throw query.lastError().text();
}
return r;
});
print(r);
} catch(e) {
print("error: ", e);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment