Advertisement
private775

PS: check SQL connection

Jul 25th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $connString = "Server=SQL-TEST.CONTOSO.LOCAL;Database=master;Trusted_Connection=True;"
  2. $conn = new-object System.Data.SqlClient.SqlConnection($connString)
  3. $conn.Open()
  4. $conn.ServerVersion
  5. $conn.Dispose()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement