Copied to clipboard

Flag this post as spam?

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


  • Robert 33 posts 173 karma points
    Mar 22, 2018 @ 09:53
    Robert
    0

    Import data directly into umbraco db

    What would be the recommended way to import data for our document types directly into the umbraco db? (The data we need to import is in another sql instance).

    Does anyone have a recommend script or guidelines as to how to achieve this?

    Is it risky to bypass the umbraco backend and hit the db directly?

    We are interested in doing this as we have hundreds of thousands records and a normal import via the cms site is slow.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Mar 22, 2018 @ 10:34
    Alex Skrypnyk
    1

    Hi Robert

    There 2 ways of doing it:

    1. Use "CMSImport" package - http://our.umbraco.org/projects/developer-tools/cmsimport

    2. Write custom code using ContentService - https://our.umbraco.org/documentation/reference/management/services/contentservice

    I would not recommend using sql queries

    Thanks.

    Alex

  • Robert 33 posts 173 karma points
    Mar 22, 2018 @ 10:40
    Robert
    0

    Hi Alex - we are already using CMS import but it doesn't work well with hundreds of thousands of records.

    I want to use sql queries to import directly into umbraco from another sql db.

    Can you recommend what tables to insert the data into and in what order?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Mar 22, 2018 @ 10:41
    Alex Skrypnyk
    0

    What about docTypes, are they the same between databases?

  • Robert 33 posts 173 karma points
    Mar 22, 2018 @ 10:44
    Robert
    0

    The other sql db (where we have our data) is not an umbraco db but data can be retrieved from there that matches the doc types we have in umbraco db.

    I am looking for guidelines on inserting this data straight into the umbraco tables.

  • Ganesh Kumar 8 posts 79 karma points
    Mar 27, 2018 @ 11:56
    Ganesh Kumar
    1

    Hi Robert,

    it is always better to use Umbraco content Service.(Alex's #2)

    so you can do testing by inserting 2-3 records initially for testing then insert bulk record if the testing is passed.

    also by using custom code, we can log the errors if may occured.

    I am using Content service for bulk upload when I used to use umbraco v7.

    Thanks

  • Justin Liu 4 posts 74 karma points
    Oct 10, 2018 @ 19:50
    Justin Liu
    1

    Robert,

    Did you import your content from directly from SQL successfully in the end?

    Im in the same situation now, 30+ records - CMSImport is painfully slow on my server.

    Regards

  • Rabea 34 posts 186 karma points
    Mar 14, 2019 @ 05:41
    Rabea
    0

    Can anyone guide me on using the second approach with Content Service, I also want to avoid Scripts

  • Henrik Sunesen 84 posts 281 karma points
    Mar 14, 2019 @ 05:56
    Henrik Sunesen
    0

    How often do you need to do this import?

  • Rabea 34 posts 186 karma points
    Mar 14, 2019 @ 06:11
    Rabea
    0

    Just once to import old content pages and members from an existing website to a newer and separately built version of Umbraco

  • Kevin 7 posts 108 karma points
    May 07, 2019 @ 17:21
    Kevin
    0

    I'm also looking for a solution as CMSImport does not support V8. Did you ever learn how to import?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Apr 25, 2020 @ 09:59
    Alex Skrypnyk
    0

    CMSImport will support V8 soon

Please Sign in or register to post replies

Write your reply to:

Draft