Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
derekengel opened this issue Nov 17, 2023 · 1 comment
Open

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

derekengel opened this issue Nov 17, 2023 · 1 comment

Comments

@derekengel
Copy link

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.

@flagardien
Copy link

flagardien commented Mar 5, 2024

I'm also having the same issue... I don't suspect that it's my account since Test-DbaConnection localhost returns favourable results. Really excited to try this, but I cannot seem to get started since this error just simply won't go away :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants