Dim cmd1 As New SqlClient.SqlCommand(SQL语句, conStr)
Dim rd1 As SqlDataReader
conStr.Open()
ComboBox1.Items.Clear()
rd1 = cmd1.ExecuteReader(CommandBehavior.CloseConnection)
Do While rd1.Read
ComboBox1.Items.Add(rd1.Item(0))
Public conn As New SqlClient.SqlConnection
Dim SQLtile As String
conn = New SqlClient.SqlConnection("data source=SQL服务器IP;initial catalog=数据库名;user id=SQL用户;password=SQL密码;")
conn.Open()
SQLtile = "select * from s_update"
Dim RS_up As New DataSet
Dim DAup As New SqlClient.SqlDataAdapter
DAup.SelectCommand = New SqlClient.SqlCommand(SQLtile, conn)
DAup.Fill(RS_up)
TextBox1.Text=RS_up.Tables(0).Rows(第几行)("字段名")
Dim rs As String
cn = New SqlClient.SqlConnection("data source=zx3;initial catalog=test;user id=sa;password=")
rs = "select t_login.* from t_login"
Dim RS_up As New DataSet
Dim DAup As New SqlClient.SqlDataAdapter
DAup.SelectCommand = New SqlClient.SqlCommand(rs, cn)
DAup.Fill(RS_up)
解释一下这个中文意思,我是英语版的看不懂