Copied to clipboard

Flag this post as spam?

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


  • dwarakesh 50 posts 69 karma points
    Sep 13, 2011 @ 07:32
    dwarakesh
    0

    Connect to sql datatbase

    Hi

       I need to fetch some information from sql database (either from table created by me in umbraco database or from external databse) . how to do that in umbraco...

  • Rich Green 2246 posts 4008 karma points
    Sep 13, 2011 @ 08:50
    Rich Green
    0

    Hi,

    You can use any database access method you choose. If you want to use Umbraco's SQLhelper then there's a simple example here (though I think you should close the reader after you're done)

    http://our.umbraco.org/forum/developers/api-questions/23592-how-to-use-SqlHelper-and-read-table-data?p=0

    Rich

  • George Mocanu 28 posts 48 karma points
    Sep 13, 2011 @ 08:53
    George Mocanu
    0

    Hello,

    With Visual studio create a usercontrol that fetch the data you need and register into umbraco as macro. Connection string you can add to either to web.config either directly in usercontrol.

     

     

  • dwarakesh 50 posts 69 karma points
    Sep 13, 2011 @ 09:15
    dwarakesh
    0

    Hey rich,

       Thanks for the reply .. in the link u have given.. umbraco.businesslogic dll is used .. where can i get that Dll.

     

  • Rich Green 2246 posts 4008 karma points
    Sep 13, 2011 @ 09:17
    Rich Green
    0

    Hey,

    In your Umbraco install, check the /bin directory, all the dlls are in there.

    Regards

    Rich

  • dwarakesh 50 posts 69 karma points
    Sep 13, 2011 @ 09:22
    dwarakesh
    0

    Hey,

    I cant  find that Dll in my Bin .. thats y asked .. is it associated with some default package alone???

  • Rich Green 2246 posts 4008 karma points
    Sep 13, 2011 @ 09:26
    Rich Green
    0

    It's in there, it's named 'businessLogic.dll'

    Rich

     

  • dwarakesh 50 posts 69 karma points
    Sep 13, 2011 @ 09:31
    dwarakesh
    0

    oh.. its there .. sorry for my stupidity.. thanks rich.

Please Sign in or register to post replies

Write your reply to:

Draft