aaronabdiel
New member
- Joined
- Jan 1, 2008
- Messages
- 2
- Programming Experience
- Beginner
Imports System.Data.SqlClient
Dim param1 As New SqlParameter
Using conn As New SqlConnection("YOUR_CONNECTION_STRING")
Using cmd As New SqlCommand("sp_your_stored_procedure", conn)
param1 = cmd.Parameters.Add("@RecordID", SqlDbType.Int)
param1.Direction = ParameterDirection.Input
param1.Value = 15
Using dr As SqlDataReader = cmd.ExecuteReader()
End Using
End Using
End Using