in reply to Re^2: My MSSQL query fails the second time.
in thread My MSSQL query fails the second time.

I was receiving a very similar error message. In my case, it was because I had a FOREIGN KEY that was not satisfied (i.e. I was trying to add a child record for which I had no parent). Check your table structure, and be sure your record is complete.
  • Comment on Re^3: My MSSQL query fails the second time.

Replies are listed 'Best First'.
Re^4: My MSSQL query fails the second time.
by Anonymous Monk on Nov 14, 2013 at 19:31 UTC
    If you are doing a query, it can be because you are trying to search by a field that does not exist in that table.