You don't need to set the .Size property.

On Wed, Oct 6, 2010 at 2:11 PM, crocboy25 <[email protected]> wrote:

> Using this still gave the same error:
>
>            myCommandCk.Parameters.AddWithValue("@MR_LU_TEAMS_NAME",
> fkTeamID)
>             myCommandCk.Parameters("@MR_LU_TEAMS_NAME").Size = 30
>
>
> It seems to get past the execute reader and goes through the ".READ"
> section also but when the sub ends, this error gets thrown.  The sub
> is the GridView1_RowDeleting sub routine.
>
> I am at a loss.....
>
> On Oct 6, 4:02 am, Jamie Fraser <[email protected]> wrote:
> > Try replacing myCommandCk.Parameters.Add with
> > myCommandCk.Parameters.AddWithValue
> >
> >
> >
> > On Tue, Oct 5, 2010 at 8:19 PM, crocboy25 <[email protected]>
> wrote:
> > > Data.SqlClient.SqlParameter- Hide quoted text -
> >
> > - Show quoted text -

Reply via email to