Skip to content

Instantly share code, notes, and snippets.

@jeevan-vj
Created August 8, 2019 02:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jeevan-vj/97daf6e014162bc7e110e189f3c9b1ed to your computer and use it in GitHub Desktop.
# $Connection object will be diposed.
Using-Object($Connection = New-Object System.Data.SQLClient.SQLConnection($ConnectionString)) {
#code goes here.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment