Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with double Index and MTS

Status
Not open for further replies.

CShellVB

Programmer
Feb 20, 2001
2
US
I have a table with two indexs. One is an identity field called "ID" and the other is a nChar(40) field. I have indexes on both fields. The ID because it is the PK and the Char field because it relates to other fields in the database. The problem I am having is when I call a stored procedure to perform an insert I keep getting duplicate index errors returned. But when I check the database the record is added. One wierd item is that the identity field has incremented by 2 and not 1. It is like the first one failed and the second did not..? Anyone with help in this area would be greatly appreciated...Thanks CShellVB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top