I\'m a total newb to stored procedures, so I may be missing something easy, but I researched the basics and I\'m stuck trying to integrate it from vb.net code. I created a simpl
You might try changing to a direct call (I haven't tested this:
cmd.CommandType = CommandType.Text
cmd.CommandText = "CALL GetRuntestToday"
Also, a better way of writing your code:
Dim MyConString As String = "My String Details"
Using dbcRuntest As New OdbcConnection(MyConString)
dbcRuntest.Open()
Using cmd As New OdbcCommand("CALL GetRuntestToday", dbcRuntest)
cmd.CommandType = CommandType.Text
Using reader As OdbcDataReader = cmd.ExecuteReader
'do someting with reader'
End Using
End Using
End Using
The Using
structure automatically closes the connection and disposes it (along with the other objects).
Edited to use CALL instead of EXECUTE