Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Public Sub dbOpen()
  2. Try
  3. CON = New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=BimbelNasional;Integrated Security=true")
  4. If CON.StatisticsEnabled = ConnectionState.Closed Then
  5. CON.Open()
  6. End If
  7. Catch ex As Exception
  8. MsgBox(ex.Message, MsgBoxStyle.Exclamation)
  9. End Try
  10. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement