简体   繁体   中英

Unique Identity column across multiple databases

Is it possible to get the Identity column value from some centralizes resource across multiple databases?

I'm interested especially in native MS SQL components.

Is it possible to get the Identity column value from some centralizes resource across multiple databases?

Identity is a table scoped object and you can't get that value across multiple databases

I'm interested especially in native MS SQL components

From SqlServer 2012 ,you can use Sequences which are database scoped and you can call it from another database too..

就我而言,可能的解决方案是链接服务器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM