MS SQL share identitiy seed amongst tables

Posted by Net Citizen on Stack Overflow See other posts from Stack Overflow or by Net Citizen
Published on 2010-03-25T20:38:54Z Indexed on 2010/03/25 20:53 UTC
Read the original article Hit count: 411

Filed under:
|

In MS SQL is it possible to share an identity seed across tables? For example I may have 2 tables:

Table: PeopleA

  • id
  • name

Table: PeopleB

  • id
  • name

I'd like for PeopleA.id and PeopleB.id to always have unique values between themselves. I.e. I want them to share the same Identity seed.

Note: I do not want to hear about table partitioning please, only about if it's possible to share a seed across tables.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server