Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 185105

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:24:39+00:00 2026-05-11T15:24:39+00:00

I’m upsizing a backend MS Access database to SQL Server. The front-end client will

  • 0

I’m upsizing a backend MS Access database to SQL Server. The front-end client will remain an Access application for the time being (has about 30k lines of code).

The aim is to eventually allow synchronisation of the database accross multiple servers (not using replication but probably the sync framework).
Currently, all Primary Keys in the Access tables are autoincrement integer surrogates.

I’m not asking about the process of upsizing but about whether I should use GUID or another codification for the PK (I know I could split the number range accross servers, but I don’t want to do that and allow the PK to be created on the client if necessary, for instance in Offline mode).

GUID

Pro:

  • standardised format.
  • uniqueness assured (practically anyway)

Cons:

  • not easy to manipulate in Access, especially when using them as filters for subforms or in controls.
  • degrade INSERT performance due to their randomness.
  • has more than one representation: string, canonical form, binary that need to be converted.

Custom codification scheme

I thought that maybe a scheme using a more uniform code as PK would avoid the performance penalty and, most importantly, ensure that the PK remains usable in form controls where necessary (and not require these conversions to/from string).

My idea for a codification scheme would be along the lines of a 10 character code split into:

  • 8 digits for a timestamp
  • 4 digits for a unique client ID
  • 2 digits as a random number for potential colisions Each digit would be in base 34, composed of letters from A-Z and 2-9, avoiding O, 0, 1, I because of their similitude (in case we need to manually handle these PK, for instance during debugging).

Pro:

  • easier to handle manually when the case arises.
  • don’t require conversion between different representation since it’s basically a string (so less existing code to adapt).
  • uniqueness assured (practically)

Cons:

  • performance in JOIN hasn’t been proven
  • performance in INSERT should be faster than GUID but not proven
  • Each server/client machine must be set its own UID, although that should not be too much of an issue.

So, should I use GUID or another scheme for my PK?

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:24:40+00:00Added an answer on May 11, 2026 at 3:24 pm

    not easy to manipulate in Access, especially when using them as filters for subforms or in controls.

    -> Access has GUID as Number->Replication Identificator. We have application in Access with every PK as GUID and we haven’t any problem with filters (and with filters for subfroms too).

    degrade INSERT performance due to their randomness.

    -> If you have performance problem based od this, you can have cluster index on another column (timestamp for example). But MSSQL server has two function for generating new GUID values – ‘newid()’ and ‘newsequenceid()’. The second methods – as name says – generates new values in sequence, so the insert performace issue should not happens.

    has more than one representation: string, canonical form, binary that need to be converted.

    -> its ‘PRO’ in my sight :). But for users-developer and users-admins is in Access and MSSQL represented and consumed as string..

    The GUID is in core ‘only’ 128bit number. I don’t think you should worry about efectivity of JOINs on GUID columns. The joining GUID columns is much more eficient than conditions on text columns for example.

    I don’t hink the Custom codification scheme is good idea, because you must solve many things. On other hand the GUID is standardly used and tools are ready to use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 122k
  • Answers 122k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Fun with extension methods... var ret = john.ToXmlString() public static… May 12, 2026 at 12:41 am
  • Editorial Team
    Editorial Team added an answer A stored procedure can return many result sets, or none,… May 12, 2026 at 12:41 am
  • Editorial Team
    Editorial Team added an answer You can try this: CREATE UNIQUE CLUSTERED INDEX index_name ON… May 12, 2026 at 12:41 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.