Advertisement
Nooralfian83

Module SQL

Nov 12th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.38 KB | None | 0 0
  1. Imports System.Data.SqlClient
  2.  
  3. Module Module1
  4.     Public conn As SqlConnection
  5.     Public cmd As SqlCommand
  6.     Public dr As SqlDataReader
  7.     Public da As SqlDataAdapter
  8.     Public ds As New DataSet
  9.  
  10.     Sub koneksi()
  11.         conn = New SqlConnection("Data source = GUNGS\SQLEXPRESS; initial catalog=dbkredit;integrated security = true")
  12.         conn.Open()
  13.     End Sub
  14. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement