Copied to clipboard

Flag this post as spam?

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


  • Gert Peter Brigsted 30 posts 61 karma points
    Aug 11, 2011 @ 11:51
    Gert Peter Brigsted
    0

    Obtaining a DbConnection through Umbraco

    Is it possible to "hack" into Umbraco and obtain a DbConnection? I need to create some custom tables and access them, but they will be in the same database as Umbraco itself. I think it would be unnecessary to add my own connection string and DbProviderFactory to the Web.config, since Umbraco is most likely already doing this stuff somewhere behind the scenes.

  • Hendy Racher 861 posts 3844 karma points MVP 2x admin c-trib
    Aug 11, 2011 @ 11:58
    Hendy Racher
    0

    Hi Gert,

    Yes, you can use: umbraco.BusinessLogic.Application.SqlHelper

    HTH,

    Hendy

  • Gert Peter Brigsted 30 posts 61 karma points
    Aug 11, 2011 @ 12:50
    Gert Peter Brigsted
    0

    Yeah, I also found out myself, once I tried googling a little differently... :-/ But thanks anyway! :-D

  • 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