Dim conn As New SqlConnection("Data Source=TECH4; Database=test_vs; Integrated Security=SSPI")
Dim command As New SqlCommand("p1", conn)
command.CommandType = CommandType.StoredProcedure
command.Parameters.Add("@agent_name", SqlDbType.VarChar).Value = TextBox1.Text
command.Parameters.Add("@phone_number", SqlDbType.VarChar).Value = TextBox2.Text
command.Parameters.Add("@uid", SqlDbType.VarChar).Value = TextBox3.Text
conn.Open()
command.ExecuteNonQuery()
conn.Close()
I ran your code through
http://converter.telerik.com/[
^].