Identity cannot be determined for newly inserted rows 
Author Message
 Identity cannot be determined for newly inserted rows

Hi everyone!

I have a project written in VB6 with SQL 7. I have a portion that consists
of 4 forms and accesses 6 recordsets. After updating the fields of each
recordset I do an updatebatch. If I then go back and try to change a field
in one of the records, I get the error message "Identity cannot be
determined for newly inserted rows". If I don't do the updatebatch then when
I try to add records to the other recordsets I am violating my key
contraints. Can anyone give me some advice? I don't want to commit the
transaction until they are completely done with all the modifications.

Thanks so much!

Erica



Sun, 16 Nov 2003 23:24:27 GMT  
 Identity cannot be determined for newly inserted rows
You can manage the multiple table update with begintrans committrans on your
connection object.  All the calls between begintrans and committrans are
commited together.


Quote:
> Hi everyone!

> I have a project written in VB6 with SQL 7. I have a portion that consists
> of 4 forms and accesses 6 recordsets. After updating the fields of each
> recordset I do an updatebatch. If I then go back and try to change a field
> in one of the records, I get the error message "Identity cannot be
> determined for newly inserted rows". If I don't do the updatebatch then
when
> I try to add records to the other recordsets I am violating my key
> contraints. Can anyone give me some advice? I don't want to commit the
> transaction until they are completely done with all the modifications.

> Thanks so much!

> Erica



Mon, 17 Nov 2003 11:34:35 GMT  
 Identity cannot be determined for newly inserted rows
Mark,

Thanks for the reply. I am using begintrans and committrans on my
connection. The error occurs when I try to modify a record after the rs has
been updated and before commitrans is called to end the transaction.

Thanks,

Erica


Quote:
> You can manage the multiple table update with begintrans committrans on
your
> connection object.  All the calls between begintrans and committrans are
> commited together.



> > Hi everyone!

> > I have a project written in VB6 with SQL 7. I have a portion that
consists
> > of 4 forms and accesses 6 recordsets. After updating the fields of each
> > recordset I do an updatebatch. If I then go back and try to change a
field
> > in one of the records, I get the error message "Identity cannot be
> > determined for newly inserted rows". If I don't do the updatebatch then
> when
> > I try to add records to the other recordsets I am violating my key
> > contraints. Can anyone give me some advice? I don't want to commit the
> > transaction until they are completely done with all the modifications.

> > Thanks so much!

> > Erica



Mon, 17 Nov 2003 21:33:48 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Error - The provider is unable to determine identity for newly inserted rows (0x80040E1B)

2. Getting the identity value of a newly inserted row

3. Getting IDENTITY value of newly inserted row

4. Obtaining the value of the Identity column of a newly inserted record

5. How do I get the AutoNumber (or Identity) for a newly inserted record (from able-consulting)

6. VB5, SQL6.5: row identity after INSERT?

7. How to retrieve the IDENTITY (Counter) value of INSERTed rows

8. need ID from newly inserted record (altered by insert trigger on SQL server)

9. Db Grid cannot insert rows when table is empty

10. Err: Empty row cannot be inserted. during AddNew

11. Help Needed - Empty row cannot be inserted!

12. DataGrid: empty row cannot be inserted errors...

 

 
Powered by phpBB® Forum Software