JAM Posted February 26, 2004 Posted February 26, 2004 Hi everyone I'm trying to display some data on a datagrid using a stored procedure that requires an input parameter. The problem is how to pass the input parameter to the stored procedure. ANY IDEA, PLEASE HELP. Quote
Administrators PlausiblyDamp Posted February 26, 2004 Administrators Posted February 26, 2004 Dim sp As New SqlClient.SqlCommand() sp.CommandText = "stored proc name" sp.Parameters.Add("@param name", SqlDbType.Int) 'Change as appropriate sp.Parameters("@param name").Value = 47 'Change to your value Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.