Copied to clipboard

Flag this post as spam?

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


  • Saied 349 posts 674 karma points
    Jul 08, 2015 @ 20:26
    Saied
    0

    Accessing data from another database?

    I saw that Umbraco comes with PetaPoco and if I add a table to the Umbraco database, I can do crud operations against that table, but what if I have a table that is on a different database on a different server, what is the best way to get data from their, for example, in a dropdown list?

  • Sunshine Lewis 31 posts 140 karma points c-trib
    Jul 08, 2015 @ 21:31
    Sunshine Lewis
    0

    Hello Saied!

    As I understand it, you can still use PetaPoco, but you have to include the code for connecting to a external database.

    This forum topic may help. https://our.umbraco.org/forum/developers/razor/49750-Accessing-external-database-from-partial-view-macro-

    Specifically this comment from Graeme. https://our.umbraco.org/forum/developers/razor/49750-Accessing-external-database-from-partial-view-macro-#comment-194291

  • 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