title: Connection to SQL DB with Cypress
body: <p>I'm trying to connect with SQL db using cypress followed the <a href="https://www.npmjs.com/package/cypress-sql-server" rel="noreferrer">NPM guide</a> . All the dependencies are exactly as mentioned but on running this</p>
  <pre><code> cy.sqlServer('SELECT Email FROM [MyDB].[dbo].[User] WHERE Name =&quot;test&quot;')
  </code></pre>
  <p>I am getting error as below while running.</p>
  <blockquote>
  <p>CypressError: cy.task('sqlServer:execute') failed with the following error:</p>
  <p>TypeError: No connection configuration given.</p>
  </blockquote>
  <p>Although my cypress.json file has got my database connection string.</p>
  <p>Cypress.json</p>
  <pre><code>{
  &quot;baseUrl&quot;: &quot;myurl&quot;,
  &quot;db&quot;: {
      &quot;userName&quot;: &quot;test&quot;,
      &quot;password&quot;: &quot;test&quot;,
      &quot;server&quot;: &quot;test\\test&quot;,
      &quot;options&quot;: {
          &quot;database&quot;: &quot;test&quot;,
          &quot;encrypt&quot;: true,
          &quot;rowCollectionOnRequestCompletion&quot; : true
      }
  }    
  }
  </code></pre>
  <p>The below is my plugins/index.js file</p>
  <pre><code>  const sqlServer = require('cypress-sql-server');
  module.exports = (on, config) =&gt; {
    // `on` is used to hook into various events Cypress emits
    // `config` is the resolved Cypress config
    tasks = sqlServer.loadDBPlugin(config.db);
    on('task', tasks);
  }
  </code></pre>