Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Casper Slynge 1 post 21 karma points
    Sep 04, 2012 @ 11:39
    Casper Slynge
    0

    Locate old content in database

    Hi guys,

    I recently removed all the umbraco files from my FTP because I am building a new website (with php). However, I need some of the content that was stored in umbraco. 

    Where can I locate the old content in the database? I cant seem to find the text from all the articles I created.

    Thanks, Casper

  • Mike Chambers 621 posts 1203 karma points c-trib
    Sep 04, 2012 @ 15:34
    Mike Chambers
    0

    sql script I use for finding in newest published content...

     

    select b.Id as PropertyDataId, c.path ,
    contentNodeId, d.Name, d.Id as PropertyTypeId, c.text as DocumentName, dataNvarchar, dataNtext
    
    --into #temp
    
    from
    
    
            cmsDocument AS a       
            INNER JOIN cmsPropertyData AS b ON a.nodeId = b.contentNodeId and a.newest = 1  and a.versionId = b.versionId
            INNER JOIN umbracoNode as c on a.nodeId = c.id
            INNER JOIN cmsPropertyType as  d on b.propertytypeid = d.id 
    WHERE
            --n.path LIKE ('-1,%' + @rootNodeId + '%')
            --d.Id = 37
            --AND
            --(
            --       b.dataNvarchar LIKE ('%' + 'XXX' + '%')
            --        OR
            --        b.dataNtext LIKE ('%' + 'XXX' + '%')
            --)  
            --AND
            (
            trashed <> '1'
            )      
    ;

    I've dropped the Where, so you should get all the published content that you had

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies