Question Add Column

tqmd1

Well-known member
Joined
Dec 5, 2009
Messages
60
Programming Experience
Beginner
I have following codes

VB.NET:
 str2 = "select sno,name from employees where sno =" & Val(Me.TextBox1.Text)
            cmd2 = New SqlClient.SqlCommand(str2, con)
            da2 = New SqlClient.SqlDataAdapter(cmd2)
            dt2 = New DataTable
            da2.Fill(dt2)

Now dt2 has two columns as sno and name
But I want to add a 3rd column city type char(80)

Please help
 
Back
Top