注册 登录
编程论坛 VB.NET论坛

求助! 数据库应用问题

fengbo1320 发布于 2008-06-15 11:03, 1019 次点击
数据库等等 都能连通了  
  selectString = "select 用户名 from table_2 where 用户ID=2"

            Dim myConnection As New SqlClient.SqlConnection


            myConnection.ConnectionString = conn
            Dim myCommand As New SqlClient.SqlCommand(selectString, myConnection)

            myConnection.Open()
            

            Dim read As SqlClient.SqlDataReader
            read = myCommand.ExecuteReader
            TextBox1.Text = ??????
  这条查询语句返回的值  要在TextBox1.Text  中显示  ????处  read这个对象应该怎么写?
0 回复
1