When am trying to create a table in federation am getting this error.How can I solve this. I have to use Identity. All things where set. but when try to apply federation this happens.

Thanks in advance.

有帮助吗?

解决方案

You will likely need to use guid based keys in a federated DB.

If you think about multiple places generating an integer key, there is a lot of possibility for collision. With federated databases in SQL Azure, you are dealing with the same table split across multiple instances. That is why you cannot have an integer being generated by identity.

其他提示

You can create bigint columns and use Identity generator like SnowMaker to generate Unique IDs across the federation. I am using it on one of my project and works very nicely

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top