.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

Document History Versions

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
A doc library with turned on function of versioning after any changes of an item. Want to turn it off and delete all history version. This will redeem grand piece of space. Tried to just turn off versioning and free unused space from sql db. Didnt work because all these versions are still there and you can see em after turning version control back. There are over 1k files in a lib and i dont want to manually crawl over each one and cut off these versions.

View Complete Post

More Related Resource Links

How to display the number of versions that an item/document currently has?

Hello, If I enable versioning on a list, is there a way to display the number of versions in the version history for each item? Now I have to open the version history for each item to see how many versions there are. I need a quick overview in e.g. the view to see which items contain a lot of versions. Is that possible ?

Trying to include version history table inside Word document

Running MOSS 2007 with SP1, Office 2007.   I'm trying to create a table (doesn't have to be a table though) of a document's version history inside the document. This would be the history information kept by SharePoint. Since we can't even easily get just the current version number into the document I'm having problems and thought I'd see if anybody has a bright idea.   First, a couple facts. From Word 2007 it is possible to view the Document Library version information by clicking on the Office Button > Server > View Version History. This brings up the following: Click for screenshot   My goal is to get that version information displayed IN the document so when it is printed there is a document history. I tried using IRM label policies, but this only displays the current version and you can't include the comments.   After some digging I found the following code sample on MSDN:   Code SnippetDim dlvVersions As Office.DocumentLibraryVersions    Dim dlvVersion As Office.DocumentLibraryVersion    Dim strVersionInfo As String    Set dlvVersions = ActiveDocument.DocumentLibraryVersions    If dlvVersions.IsVersioningEnabled Then        strVersionInfo = "This document has " & dlvVersions.Count & " versions: " & vbCrLf        For Each dlvVersion In dlvVersions            strVersionInfo = strVersionInfo & _                " - Versi

Event handler to delete minor versions in document libraries

Hi Is there a way we can capture the deletion of minor versions in document libraries using any event handler. May not be using the delete all the minor versions but at least when we use the option to delete the selected minor version. I do not see the ItemUpdating and ItemUpdated getting fired in this case. Thanks wpwije  

Use letters instead of numbers for document versions

Is it possible to use letters instead of numbers for document versions? In sharepoint, drafts are numbered 0.1, 0.2,... 1.1, 1.2, 1.3, etc. and published versions are 1.0, 2.0, etc. But due to company's procedures we should use a different system using letters (A, B, C...). Is that possible? If not, would it be possible to add some property to the documents to add the version letter? I know it may be difficult because the letter can be calculated just after sharepoint assigned the version number... :-(

can we hide 'delete all versions' from version history with the help of javascript?

hello guys, can we hide 'delete all versions' or tool bar from version history. Can we write some JavaScript to do that?  Thanks

Users (even site collection administrator) unable to see minor versions in document libraries


I have document libraries with the following settings: major & minor versioning enabled, checkout required & 'only users who can edit items' can see draft (minor) items. The problem is when a user uploads a document (the first document), the library appears empty. However, looking at the summary in 'view all site content' we see that the number of items in the list has incremented by 1. Typically, if the user selects explorer view they can also see the document they just uploaded.

Similar behaviour occurs using the 'New document' option. Before checking in the document for this first time it is visible in the library. If it is checked in as v 0.1 it 'disappears' if it is checked in as v 1.0 it is visible.

I have noticed that if I toggle the Draft Item Security setting by setting it to 'any user who can read items' then set it back immediately to 'only users who can edit items' that the previously hidden items become visible. And any new minor versions created subsequently are also displayed correctly. I can of course do this for existing libraries, but if new libraries are created based on my template this behaviour reoccurs.

Has anyone seen this before?

Version History: Some versions being lost (saved as 0KB)


Greetings all,

We've got lots of users having lots of fun with Document Library versioning. Great stuff, right?

Well, some users are complaining that when they check in and close, their versions are being lost - entirely!  It's hard to tell what could be the cause of this, but the version history does seem to back up the fact that *something* is going on. Here's a sample: http://img545.imageshack.us/f/versionissues.jpg/ ....

Here are the facts:

* Working from inside and outside our VPN

* Working on a range of MS Word versions

* Show a history of correctly checking in and checking out documents, so I think they're competent enough to not have saved a blank file

Ideas, anyone? What could be going on here?



SharePoint Document Library - Compare two versions - blackline


Autonomy WorkSite has a capability called iManage that allows a user to select two documents and view the blackline / redline version of the document hightlighting the differences between the two documents.  Does anyone know if this capability has been extended into SharePoint? 

I know I can perform this function from the Compare button on the Review tab of Microsoft Word 2010, but I am interested in performing this capability right from SharePoint.

Thanks in advance!


How to get Audit/History Log of Document using Client Object Model 2010?


I want to get the history/audit log of particular Document in my Library. When was it updated, who did checkin/checkout  on which date on this file?


Is there a way to get these information using Client Object Model?

Ronak Patel

How to get Audit/History Log of Document using Client Object Model 2010?


I want to get the history/audit log of particular Document in my Library. When was it updated, who did checkin/checkout  on which date on this file?


Is there a way to get these information using Client Object Model?

Ronak Patel

Previous document versions dont seem to disappear after turning off Document Versioning in Doc Libra


We have a two server (WFE + DB) MOSS 2007 installation with MOSS Enterprise version on it.

We had uploaded about 7000 documents amounting to a total of about 2 GB of file size into a document library. We then ran a tool to update several metadata columns for all those 7000 in the library. However we had forgotten to turn off versioning.

This seems to have caused the document library size and thereby the content database size to expand massively and we dont need that to happen. So we turned off the versioning and assumed that the previous versions would be purged by SharePoint and our document library size would reduce back to about 2 GB (total size of the documents uploaded into the library).

However the document library/content database has still not gone down in size. Can anyone suggest any ideas to make SharePoint purge / clean / delete the previous versions for all the documents - The worst part is we dont even see them in the version history anymore, but they seem to be present in the background thereby causing the content database to increase in size significantly.

Please help !



Move document (and versions) from one library and/or site to another?


I may be at searches, but I couldn't find anything related to this... Honest, I looked!


Is there a way to move a file from library to library and make sure that the versions make the trip also?


Any help is appreciated.  Thanks!

How to delete document versions in sharepoint 2007



i want to delete document versions from all document libraries in a site collection.

i know we can restrict versions at a document library level , do we have such thing at site collection level?


Thanks In Advance



Share Knowledge and Spread Love!

Is there a solution to purge document versions based on date in WSS 3.0?


We use WSS 3.0 document libraries to archive reports. Most reports are run daily and just stack up as new versions to each report document. In each of these libraries, the documents have various required retention periods. We would like a way to purge the versions of the documents based on dates and the document retention period. Everything I see so far can just purge the entire document including all versions, which is undesirable. I understand we can set our version limits to a number like 365, but this is a bad solution because this setting is at the library level and we would have to set at the longest retention period, and if reports start runnning more than once a day then we would not meet the retention requirements. I have sugggested on modifying the structure of our archive, but have been tasked with finding a built-in way to trim the old versions in our current structure or find an existing solution to do this. Any suggestions would be much appreciated.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

SharePoint Document Workspaces for Developers

Office 2003 is being released this month, and a cast of supporting applications is already available. One of these is Windows SharePoint Services 2.0, the free team add-on for Windows Server 2003. If you're not familiar with SharePoint Services basics, take a look at What Developers Need to Know About Windows SharePoint Services. In this article, I'm going to drill into one key place where SharePoint and Office 2003 overlap: document workspaces
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend