J
Jeff
I'm still new to vb.net and even newer to using stored procedures in mysql.
The called procedure will return a single row from the DB.
I'm not sure how to get that value into a DataTable. I think I need to use
some type of adapter. Could someone help me complete this?
Thanks in advance
Jeff
Dim connection2 As New OdbcConnection(MyConnString)
Dim command2 As New OdbcCommand("call SelectFromParticipants(?)",
connection2)
Dim param As New OdbcParameter("User", OdbcType.VarChar)
param.Value = Session("User")
command2.Parameters.Add(param)
connection2.Open()
command2.ExecuteNonQuery()
DataTable = <- not sure how to complete this.
connection2.Close()
The called procedure will return a single row from the DB.
I'm not sure how to get that value into a DataTable. I think I need to use
some type of adapter. Could someone help me complete this?
Thanks in advance
Jeff
Dim connection2 As New OdbcConnection(MyConnString)
Dim command2 As New OdbcCommand("call SelectFromParticipants(?)",
connection2)
Dim param As New OdbcParameter("User", OdbcType.VarChar)
param.Value = Session("User")
command2.Parameters.Add(param)
connection2.Open()
command2.ExecuteNonQuery()
DataTable = <- not sure how to complete this.
connection2.Close()