Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Sub DBConn_PgSQL()
  2. db_string = "Server=localhost;Port=5432;Database=customer;username=postgres;password=wishimajaya"
  3. Conn4 = New NpgsqlConnection(db_string)
  4.  
  5. Try
  6. Conn4.Open()
  7. MsgBox("PostgreSQL Succes")
  8. Catch ex As NpgsqlException
  9. MsgBox(ex.Message)
  10. End Try
  11. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement