Results 1 to 3 of 3

Thread: SQL Server - Identity Fields *RESOLVED*

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    SQL Server - Identity Fields *RESOLVED*

    A new problem has emerged on a live SQL server database in that a table (that currently has about 22,000 rows) has suddenly developed problems.

    Whenever we attempt to insert a new record, it comes back with an error: "Cannot insert duplicate entry in field pk_Trunk". The above field is the primary key identity field.

    Has anyone experienced this strange problem?

    ---


    Ok, I re-seeded the table and the problem seems to be sorted. Don't know why it happened in the first place though.
    Last edited by simonm; Jul 1st, 2002 at 05:07 AM.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  2. #2
    Fanatic Member RSINGH's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    522
    We have had this problem (I'll try and find it). In the mean time have you tried the DBCC REINDEX, DBREPAIR and CHECKDB comands? You may need to run these nightly depending upon your own maintenance schedule.
    The liver is bad. It must be punished.

  3. #3

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796
    Well, thanks for the responce but we've cracked it now.
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width