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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Delete major doucument version

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :SharePoint
 

Hi All,

I have a document library with versioning activated (0.1,0.2,0.3..). i want to keep only 0.1 version and rest delete. when iam trying to delete it is deleting minor version. Can any one tell me how to do this.

Thanks in advance.




View Complete Post


More Related Resource Links

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

Publish a major version after custom approval workflow

  

Hi,

I want to create a custom approval workflow in SharePoint Designer that allows me to use the "Collect Data From a User" action. After data has been collected and if the document has been "approved" I want to publish a Major Version of the document. Until that point I want the document to be in draft. The whole idea is that certain users cannot see the document until it has been approved.

How do I manage to publish a major version of a document after completion of the custom SPD workflow? There doesn't seem to be an action that allows me to change the version. Is there a workaround I need to use?

Thanks


Word does not overwrite minor version but creates new minor version (Major and minor versions)

  

Hi,

I'm having a problem with our production sharepoint server. When editing a Word document you can choose to 'Overwrite the current minor version', but instead a new minor version is created. When i edit version 1.1 for instance, it does not overwrite 1.1, but i get a new 1.2 minor version. On the test-server this problem does not occur. On that server version 1.1 is correctly overwritten with the edited document.

I have checked differences between the 2 servers, but all versions are the same (MOSS, Servicepacks, SQL, OS etc). I compared setttings, the installed and activated features, but nothing seems different.

Has anyone seen this problem before? If so, were you able to solve it?

Hope to hear from you.

With regards,

Marc

(Versions : MOSS 2007, MOSS SP2, Office 2007 & 2010)


Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

  
In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

ASP.NET 4.0: WebForm Routing (quick n dirty version)

  
One of the things we're adding in ASP.NET 4.0 is built-in support for using Routing together with WebForms. Now, I'm totally aware that this is possible to do already and that a number of people have posted ways of doing this with the Web Routing feature which shipped with ASP.NET 3.5 SP1. We're just adding some features to make it easier to do

SqlCommand.ExecuteNonQuery() returns -1 when doing Insert / Update / Delete

  
Sometimes you end up with a return value of -1 when using the SqlClient.SqlCommand.ExecuteNonQuery method.

Why is that?



Well, the ExecuteNonQuery method is there for statements for changing data, ie. DELETE / UPDATE /INSERT, and the returned value are the number of rows affected by that statement.

When checking the documentation we can see that there are some conditions that return -1.



For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command.

When a trigger exists on a table being inserted or updated, the return value includes the number of rows affected by both the insert or update operation and the number of

rows affected by the trigger or triggers. For all other types of statements, the return value is -1. If a rollback occurs, the return value is also -1.

update/delete not working on server only

  

my aspx page works in VWD, and everything works on the server EXCEPT update and delete sql functions. any ideas?

thanks 


How to use TOP in DELETE

  

Hi,

I have a large database in MSSQL 2005 (rows around 3,788,299 : size 4GB)

Two questions

1. SQL query ~ select top 100 * from [tablename], how do capture the next 100 record?

2. SQL query ~ delete top 100 from [tablename] --- MSSQL show me syntax error? How can I only delete the top 100 record?

 

thk.


delete record from excel sheet

  



Hello,

           I have write the code for deleting the data in excel sheet. but we have got the error" Deleting data in a linked table is not supported by this ISAM."

     below I paste some code snippest.

string strDelete = "Delete  from [" + strSheetName + "$]";

            cmdExcel.Connection = con;
            cmdExcel.CommandType = CommandType.Text;
            cmdExcel.CommandText = strDelete;

            cmdExcel.ExecuteNonQuery();


Please can anybody this answer.It is urgent


delete data in excel sheet

  

Hello,

           I have write the code for deleting the data in excel sheet. but we have got the error" Deleting data in a linked table is not supported by this ISAM."

     below I paste some code snippest.

string strDelete = "Delete  from [" + strSheetName + "$]";

            cmdExcel.Connection = con;
            cmdExcel.CommandType = CommandType.Text;
            cmdExcel.CommandText = strDelete;

            cmdExcel.ExecuteNonQuery();


Please can anybody this answer.It is urgent




how to create a mobile version of a website?

  

 how to create a mobile version of a website?
Is there any server support needed?
How does the browser detect whether the url is accessed via mobile device or a PC?


Coding Tools: Improved Support For Parallelism In The Next Version Of Visual Studio

  

We take a look at planned support for parallel programming for both managed and native code in the next version of Visual Studio.

Stephen Toub and Hazim Shafi

MSDN Magazine October 2008


Team System: Team Foundation Server Version Control

  

In this new column, Brian Randell begins his long look at how to extend and enhance Visual Studio Team System.

Brian A. Randell

MSDN Magazine January 2007


C++ at Work: Web Version Checking, Adding Sound to an App

  

This month: CWebVersion revisited using HTTP instead of FTP, and adding sounds to an MFC-based app.

Paul DiLascia

MSDN Magazine May 2006


XML in Yukon: New Version Showcases Native XML Type and Advanced Data Handling

  

The next version of Microsoft SQL Server, code-named "Yukon," represents quite a few steps forward in the evolution of XML integration. Yukon supports native storage of XML data using the XML data type, which makes it possible to run native queries on XML data using the emerging industry standard XQuery language. Data integrity of the XML data type can be enforced through schema validation and XML-based check constraints, and special indexes can be defined that help speed up queries. In addition, Yukon has the built-in ability to expose its data through Web services. This article discusses these and other XML features of Yukon.

Bob Beauchemin

MSDN Magazine February 2004


Categories: 
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