Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top