
Buka project Koneksi String VB.NET 2010 From App.Config dan buat form seperti gambar di bawah ini
Ketikkan kode berikut :
Imports System.Data.SqlClient
Imports System.Configuration
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connectionString As String
Dim cnn As SqlConnection
Dim cmd As SqlCommand
Dim sql As String
Dim transaction As SqlTransaction
connectionString = ConfigurationManager.AppSettings("ConString").ToString()
cnn = New SqlConnection(connectionString)
sql =...