An entry with the same key already exists. RRS feed

  • Question

  • User-1458477476 posted

    i'm working on a SqlDataSource object, it has a deletecommand which is ( DeleteCommand="delete albums where albumid=@albumid") but whenever i try to delete a record, where albumid is an identity primary key column, i receive the following error message , 

    An entry with the same key already exists. 

    but there are no duplicate records, i wonder why i receive this msg, may i pls mention again AlbumId is a Primary Key Column with Identity(1,1)




    Monday, February 21, 2011 3:34 AM