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 8493813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:07:31+00:00 2026-06-10T23:07:31+00:00

In Windows Azure table storage, there is no ‘type’ that allows an auto incrementing

  • 0

In Windows Azure table storage, there is no ‘type’ that allows an auto incrementing ID. I thought I could use ‘IsIdentity’ but the checkbox is greyed out (this should give me auto incrementing, right?).

Can anybody advise me on how I can get an auto incrementing field or a workaround please?

Thanks!

  • 1 1 Answer
  • 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. Editorial Team
    Editorial Team
    2026-06-10T23:07:33+00:00Added an answer on June 10, 2026 at 11:07 pm

    Unless, for some reason, you actually need monotonically-increasing numeric keys, then using DateTime.UtcNow.Ticks.ToString() is the usual approach. (Because the PartitionKey value on Table Storage is a string, you need to convert it.)

    The advantage to this approach is that Table Storage rows are automatically ordered by the PartitionKey (and then by the RowKey), so you’ll get the rows back in the order they were inserted, just like an IDENTITY column in SQL Server.

    If you want the records returned most-recent-first, then use (long.MaxValue - DateTime.UtcNow.Ticks).ToString() instead.

    Note that the first method will give an 18-digit number for the next 1158 years. If you want to avoid the Y3160 bug, consider padding the value with a leading zero (DateTime.UtcNow.Ticks.ToString("0000000000000000000")).

    The second method will give a 19-digit number for a very long time indeed, way past DateTime.MaxValue, so you’re probably OK there.

    Also bear in mind that with load-balancing and suchlike, there is a very small possibility that you’ll get duplicates if two servers create a record at the exact same time, so you should have retry semantics that increment the key value by one.

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

Sidebar

Related Questions

I am using Windows Azure Table Storage. I am wondering, if I could use
What options are there to secure Windows Azure Table storage? Is there anyway to
I have a few questions regarding the Windows Azure Table Storage. Unfortunately my trial
Is there a TSQL equivalent for Azure Table Storage? I want to add hock
I'm using Windows Azure Table Storage to store millions of entities, however I'm trying
The Windows Azure Storage Abstractions and their Scalability Targets blog post indicates there is
I am having a problem reading back from windows azure table storage: Here is
I'm working with Windows Azure Table Storage and have a simple requirement: add a
I need to download data from windows azure table storage back to a SQL
I am working a sample application using Windows Azure table storage. I will try

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.