Create a Parameterized Sql Procedure..

By Goniey N (Mr. G)

Show How To Create a Sql Parameterized Procedure...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim cmd As New SqlCommand()
        
Dim con As New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True")
        cmd.
Connection = con
        cmd.
CommandType = CommandType.StoredProcedure
        cmd.
CommandText = "StudentResult"
End Sub

Create a Parameterized Sql Procedure..  (732 Views)