ERROR [HY104] [Microsoft][ODBC Microsoft Access Driver]Invalid precision value

Discussion in 'ASP .Net' started by, Jan 1, 2006.

  1. Guest

    Hello all,

    I receive the following error when updating MSAccess2003 Memo fields
    using an ODBC connection in ASP.Net 1.1 when the length of the text to
    be updated exceeds 255 characters. Everything works fine when the
    length of the text stays below 255 characters. Does anyone have a

    ERROR [HY104] [Microsoft][ODBC Microsoft Access Driver]Invalid
    precision value

    ConnectionString used:

    Code with OdbcParameter:
    System.Data.Odbc.OdbcType.NText, 2147483647, "description"));

    The field in the MSAccess2003 database is called description, and is of
    type Memo

    Code used for updating:
    PersonUpdateCommand.Parameters["description"] = new
    OdbcParameter("description", person.Description);
    , Jan 1, 2006
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.