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 863 posts 3849 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

Please Sign in or register to post replies

Write your reply to:

Draft