Skip to content

Can't connect to SQL Instance Expected $false #1020

Open
@derekengel

Description

Hello and thank you for your time. I'm just testing dbachecks and I have a small lab environment. After installing the module, and making sure that Pester is at the correct verison, I run the following:

`$SQLServer = "SQLTest1"

Invoke-DbcCheck -SqlInstance $SQLServer -Check LastGoodCheckDB`

It begins to run, but throws:

Can't connect to SQLTest1
Expected $false, because the instance should be available to be connected to!, but got $true.

This looks to come from Database.Tests.ps1 line 208.

This database is accessible. It's local on the server I'm running this from. I can connect to the SQL instance just fine from PowerShell.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions