Note that there are some explanatory texts on larger screens.

plurals
  1. POProcedure or Function has Too many arguments specified
    text
    copied!<p>Its our old friend again..... I am recieving this error and i cant think why. I have checked the number of parameters being passed as well as the number of required paramaters from the sp ,regenerating the data set has given me no look. I must have missed something basic. Another pair of eyes would be helpfull. </p> <p>Thank you in advance </p> <pre><code> Public Sub GetRows(ByVal [Option] As String, ByVal searchString As String) Me.DataSet11.Clear() SqlSelectCommand1.CommandType = CommandType.StoredProcedure SqlSelectCommand1.Parameters.AddWithValue("@Option", [Option]) SqlSelectCommand1.Parameters.AddWithValue("@searchString", searchString.ToUpper) Try SqlConnection1.Open() 'execute reader 'rdr = SqlSelectCommand1.ExecuteReader Me.DataGridViewAvItems.DataSource = DataSet11.design_sp_search_drawings Me.SqlDataAdapter1.Fill(DataSet11, "design_sp_search_drawing") Catch ex As Exception MessageBox.Show(ex.Message) Finally 'close the conenction SqlConnection1.Close() End Try End Sub </code></pre> <p>///DESIGNER CODE</p> <pre><code>Me.SqlSelectCommand1.CommandText = "dbo.design_sp_search_drawings" Me.SqlSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure Me.SqlSelectCommand1.Connection = Me.SqlConnection1 Me.SqlSelectCommand1.Parameters.AddRange(New System.Data.SqlClient.SqlParameter() {New System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, False, CType(0, Byte), CType(0, Byte), "", System.Data.DataRowVersion.Current, Nothing), New System.Data.SqlClient.SqlParameter("@searchString", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "", System.Data.DataRowVersion.Current, "TES0201"), New System.Data.SqlClient.SqlParameter("@Option", System.Data.SqlDbType.VarChar, 20, System.Data.ParameterDirection.Input, False, CType(0, Byte), CType(0, Byte), "", System.Data.DataRowVersion.Current, "site_code")}) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload