Negative Primary Keys

前端 未结 9 2084
青春惊慌失措
青春惊慌失措 2020-12-10 11:25

Are there any repercussions using Negative Primary Keys for tables (Identity Increment -1, Identity Seed -1 in SQL Server 2005)?

The reason for this is we\'re creati

9条回答
  •  没有蜡笔的小新
    2020-12-10 11:46

    Like others have said, the database is fine with this.

    But it would be a problems for a .NET application that uses DataSet+DataAdapter as they use negative keys as temporaries for new records.

    Other data-access layers may use similar tricks.

提交回复
热议问题