hello 
how can i read information from Column Name...
i mean
DataBase Name>>Tables>>"Table Name">> and the Column name i want...
and then i want the column name to put on the text box.... so then i can change him every time...!!
i use this code
but this is just for connection..!!
please help..!
good day..

how can i read information from Column Name...
i mean
DataBase Name>>Tables>>"Table Name">> and the Column name i want...
and then i want the column name to put on the text box.... so then i can change him every time...!!
i use this code
VB.NET:
Imports System.Data.SqlClient
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connetionString As String
Dim cnn As SqlConnection
connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"
cnn = New SqlConnection(connetionString)
Try
cnn.Open()
MsgBox("Connection Open ! ")
cnn.Close()
Catch ex As Exception
MsgBox("Can not open connection ! ")
End Try
End Sub
End Class
but this is just for connection..!!
please help..!
good day..
Last edited by a moderator: