UNPKG

@cityssm/dynamics-gp

Version:

Read only inquiries into Microsoft Dynamics GP using a SQL Server connection.

10 lines (9 loc) 292 B
import { connect } from '@cityssm/mssql-multi-pool'; export default async function _testConnection(mssqlConfig) { const pool = await connect(mssqlConfig); const result = await pool.request().query(` SELECT 1 AS testConnection `); return result.recordset.length > 0; }