Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created August 30, 2021 14:57
Show Gist options
  • Save csharpforevermore/7011d6011121ca257b4215ed9558acd2 to your computer and use it in GitHub Desktop.
Save csharpforevermore/7011d6011121ca257b4215ed9558acd2 to your computer and use it in GitHub Desktop.
How to test your connection string using Powershell
$conn = New-Object System.Data.SqlClient.SqlConnection
$conn.ConnectionString = "Server=(local);Database=Sample;Integrated Security=True;"
$conn.Open()
$conn.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment