Argument out of range ..really?

  • Thread starter Thread starter Earl
  • Start date Start date
E

Earl

This is a replicated database from SQL2k to SQLCE.

I'm getting an ArgumentOutOfRange exception when I try to add this parameter
(all other params are ok):

pc.Add(New SqlCeParameter("Age", SqlDbType.VarChar, 3, "Age"))

In the main database, this is indeed the column name, datatype and length.
What am I overlooking?
 
Padding? I don't know, just pulling what I can think of.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
Had oracle on the brain for some reason. Wow, was that a faux pas.

Try creating the parameter separate from the Add() and see if it is creating
the Param or something with linking the param to the command. Yeah, sounds
weird, but I have seen stranger things.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
That is interesting. I will put that in my box for the next CE project.
Thanks for the update.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
Back
Top