Primary key design in SQL Server -
Right now, I'm designing the database as you know, primary keys are important factors in database design.
There is a dilemma in deciding the primary key between GUID, I am trying to design a database for the school. There are various schools in the school and many branches in different cities are the central database of the school, they want to update every evening. Please guide me? Thanks In my opinion, the default option is to use a 32-bit integer with auto-increment You can use the GUID under the specific scenarios included in this QA: A custom key should be used only if you have any reason based on your design Need to specify a specific key for or based on business needs. EDIT: Depending on your updates, if you are merge disconnected tables you may want to consider using the GUID key so that you do not have problems with collision. identity (auto increment) and a custom key for the primary key, in which case should I use?
Comments
Post a Comment