I have the following Stored Procedure on
vb code. My problem is that I am not sure how to properly of the correct syntax to fetch from output of the stored procedure.
Does anyone know how to write the
VB.Net coding to fetch from the output?
Below is the coding that i have create.
I appreciate if got any suggestion.
Dim strSQL As String = "declare @Indicator int exec @Indicator=SP_Production_InsertNewSupplier '" & txtLogin.Text & "','" & txtPassword.Text & "'," & _
"'" & txtQuestion.Text & "','" & txtAnswer.Text & "','" & txtCompanyID.Text & "','" & txtFullName.Text & "','" & txtContact.Text & "','" & txtPhone.Text & "','" & txtHandphone.Text & "'," & _
"'" & txtFax.Text & "','" & txtEmail.Text & "','" & txtAddress.Text & "','" & txtPostCode.Text & "','" & txtCity.Text & "','" & cboCountry.Text & "'," & _
"'" & txtEnquiry.Text & "' select Indicator=@Indicator"
Dim cmdInsert As SqlCommand = New SqlCommand(strSQL, cnnOTS)