Pergunta

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.

Foi útil?

Solução

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.

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top