Field must have a value

Last post 10-03-2008 3:38 PM by moh_hassan20. 2 replies.
Page 1 of 1 (3 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 10-03-2008 11:46 AM

    Field must have a value

    Hi everyone, I am novice using SQL.

    I am migrating a MySQL DB with Delphi to an SQL 2008 with Delphi, the connection is running fine, but when I try to insert new records in some tables I get the Field must have a value error with the primary key of the table

    I've already checked the properties with the ones that are working, but I can't find the difference

    Instead of that can anyone explain me what to do please,

    Thanks in advance for your help

    Luis

  • 10-03-2008 12:53 PM In reply to

    • satya
    • Top 10 Contributor
    • Joined on 11-05-2002
    • United Kingdom
    • Posts 22,515
    • Microsoft MVP
      Moderator

    Re: Field must have a value

    Welcome to the forums.

    The reason for that error is due to that field will not accept NULL or a default value is required.

    So you have to list out that table properties by using SP_HELP to get more information.

    -Satya S K J

    SQL Server MVP



    Knowledge is Power, you will gain by sharing it. SSQA.net - Invisible contributions to the users & visible success in SQL Community.
  • 10-03-2008 3:38 PM In reply to

    Re: Field must have a value

     To insert data from delphi application , the table MUST have primary key.

    check the primary keys for tables after migration. (sometimes migration don't create PK)

     

    MCSE , MCITP (SQL 2005 Administration & Development), MCTS, MCPD
Page 1 of 1 (3 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.