Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to update the 'Modified' column in SharePoint list using SQL or Powershell

$
0
0

Hi,

I have a typical issue.

I need to update the SharePoint Document 'Modified' date column using with powershell or from SQL command.

Could any body help me to do this change. When i check with the data base 'Select *from AllDocs where ListId='ID''

here i observed below columns

TimeCreated                    TimeLastModified         NextToLastTimeModified      MetaInfoTimeLastModified     TimeLastWritten
8/1/2012 5:25:53              8/1/2012  5:25:53       7/31/2012 5:25:53                 2/26/2013  5:25:53             8/1/2012 5:25:53

What columns i need to update change the Modified date.

update AllDocs SET TimeLastModified='2/13/2013' where DoclibRowId='10000' and ListId='26D706A1-CB70-3487-56F3-CD234FD13897'

Is above command will solve my issue? How can update this column using with power shell script ?

I know changing the metadata from back end is not good. But i don't have choice.

Please could any body help me to get out of this.


MD.Liakath ali


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>