Skip to content

qie.isMSSQLDatabase

Signature: qie.isMSSQLDatabase(connectionName)

Returns: Boolean isMsSql - true if this is an MSSQL Server database connection, otherwise false

Returns true if the connectionName is an MSSQL Server database connection.

Parameters

Type Name Description Default
String connectionName the name of the database connection

Example

// The database flavor decides which SQL syntax to build for each connection.
var names = qie.getDbConnectionNames();
for (var i = 0; i < names.length; i++) {
   var connectionName = names[i];

   if (qie.isMSSQLDatabase(connectionName)) {
      // Build the SQL Server flavor of the query for this connection.
   }
}