Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Data.SqlClient
- Public Class Database
- Public konek As SqlConnection
- Public Sub koneksi()
- Try
- konek = New SqlConnection("data source = KK-PC\MSSQLSERVER1; initial catalog = Inventaris; integrated security = true")
- konek.Open()
- Catch ex As Exception
- MsgBox("Koneksi gagal!", vbCritical)
- End Try
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement