Having an issue with where i seem to be connecting to SQL Server but cannot find the server/db.

[![enter image description here](https://i.stack.imgur.com/zcLBk.png)](https://i.stack.imgur.com/zcLBk.png)

I have been trying to follow the steps in this guide for Cypress 9 but to no avail.

<https://www.npmjs.com/package/cypress-sql-server>

There was an answer on SO that i've been trying to use but I can't reply to a comment and add a comment but it was deleted by the mods for some reason. This is the URL to the answer I have been trying to follow but can't connect.

[How to configure cypress-sql-server with no cypress.json? (updated)](https://stackoverflow.com/questions/73831176/how-to-configure-cypress-sql-server-with-no-cypress-json-updated)

Has someone please got a working example?

cypress.config.ts

```
const { defineConfig } = require("cypress");
const sqlServer = require("cypress-sql-server");

module.exports = defineConfig({  
  e2e: {
    setupNodeEvents(on, config) {
      // allows db data to be accessed in tests
      config.db = {
        "userName": "x",
        "password": "x",
        "server": "xxx\\SQLEXPRESS",
        "options": {
          "database": "xxxxxx",
          "encrypt": true,
          "rowCollectionOnRequestCompletion": true,
          "trusted_connection": true
        }
      }

      // code from /plugins/index.js
      const tasks = sqlServer.loadDBPlugin(config.db);
      on('task', tasks);

      return config      
      // implement node event listeners here
    },
  },
});

export default defineConfig({
  chromeWebSecurity: false,
  videosFolder: 'cypress/videos',
  screenshotsFolder: 'cypress/screenshots',
  fixturesFolder: 'cypress/fixtures',
  video: false,
  reporter: 'cypress-mochawesome-reporter',
  reporterOptions: {
    reportDir: 'cypress/reports',
    charts: true,
    reportPageTitle: 'xxxxxxxx',
    embeddedScreenshots: true,
    inlineAssets: true,
  },  
  e2e: {
    // We've imported your old cypress plugins here.
    // You may want to clean this up later by importing these.
    setupNodeEvents(on, config) {
      return require('./cypress/plugins/index.ts')(on, config)
    },
    experimentalSessionAndOrigin: true,
    specPattern: 'cypress/e2e/tests/orders/*',
    baseUrl: 'http://localhost:4200',
  },
})

```

index.ts

```
const { defineConfig } = require('cypress')

module.exports = (on, config) => {
  require('@cypress/code-coverage/task')(on, config);
  require('cypress-mochawesome-reporter/plugin')(on);  
  return config;
}

```

e2e.ts

```
import '@cypress/code-coverage/support';
import './commands';
import 'cypress-mochawesome-reporter/register';
import sqlServer from 'cypress-sql-server';
sqlServer.loadDBCommands(); 
}

```

Tried creating a new sysadmin also on SQL Server in case it was an access issue