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

  • Home
  • SEARCH
  • 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 8563855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:03:51+00:00 2026-06-11T17:03:51+00:00

I have to make a program which changes the UI version number of a

  • 0

I have to make a program which changes the UI version number of a list item (the version number which is shown on the web interface of SharePoint).

For example:
There are these version for an item: 1.0, 1.1, 1.2, 2.0, 2.2, 2.3
I want to change the label of 2.2 version to 2.1.

As I know it is impossible through the Object Model, so I have to modify the database directly.
In the database there are two related tables:

  • AllDocs – In this table there are rows which describe the current versions of the document.

  • AllDocVersions – In this table there are rows which describe the other (not current) versions of the document.

It is not so difficult if I don’t have to change the current version, only I change the UIversion field in the right tables. (In the example: 2.2 to 2.1)
The problem is if the version change changes the current version. In the example: 2.2 to 2.4.
In this case I should move the record of version 2.2 from the AllDocVersions table to the AllDocs, and the record of version 2.3 from AllDocs to AllDocVersions, but the structure of these two tables are not identical.

Can anyone describe how I can fill the missing fields in these tables?
Can anyone suggest any other way for the version change?

  • 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-11T17:03:52+00:00Added an answer on June 11, 2026 at 5:03 pm

    One, not so easy solution could be:

    1. Let SharePoint do the hard work, use the common SharePoint API to restore v2.2 as v2.4. It does two things for you:
      • copies v2.2 from AllDocVersions to AllDocs as v2.4 and
      • moves v2.3 from AllDocs to AllDocVersions.
      • It’s possible through the web interface, so I suppose it’s available for a .NET application too.
    2. Delete v2.2.
    3. Then you can update the version number of v2.4 to v2.5, v3.0 etc. in the database directly with SQL UPDATE statement(s) if v2.4 is not the desired version number.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to make the program which have one form that contains PNG image
I have to make an uninformed search (Breadth-first-Search) program which takes two nodes and
I have a java program which displays an ellipse on the screen and changes
I have a web app in Java, which uses some external program (invokes a
I have been trying, in vain, to make a program that reads text out
I am new in java. I try to make a program and I have
I am trying to make a simple program with SFML. So far I have
I have a Flash program that needs to make url requests to send data
So I have a huge program and decided I should make one of the
In this program I am trying to make, I have an expression (such as

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.