diff --git a/src/drivers/MssqlDriver.ts b/src/drivers/MssqlDriver.ts index 8a87984..113433b 100644 --- a/src/drivers/MssqlDriver.ts +++ b/src/drivers/MssqlDriver.ts @@ -475,6 +475,8 @@ WHERE TABLE_TYPE='BASE TABLE' and TABLE_SCHEMA in (${schema}) AND TABLE_CATALOG user: connectionOptons.user, }; + console.log(config); + const promise = new Promise((resolve, reject) => { this.Connection = new this.MSSQL.ConnectionPool(config, (err) => { if (!err) { diff --git a/src/index.ts b/src/index.ts index 9fcd9ba..c883555 100644 --- a/src/index.ts +++ b/src/index.ts @@ -311,6 +311,7 @@ function checkYargsParameters(options: options): options { options.connectionOptions.schemaName = argv.s ? argv.s.toString() : standardSchema; + options.connectionOptions.instanceName = argv.i || undefined; options.connectionOptions.ssl = argv.ssl; options.connectionOptions.user = argv.u || standardUser; let skipTables = argv.skipTables.split(",");