Copied to clipboard

Flag this post as spam?

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


  • Nagarjun 39 posts 71 karma points
    Oct 14, 2016 @ 09:25
    Nagarjun
    0

    Can we use existing umbraco database for local setup.

    Hi,

    Is there a way to use existing active umbraco database in my local setup. I want to use existing tables while debugging in my machine. Or is there any other alternate approach for this?

    -Thanks.

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Oct 14, 2016 @ 13:33
    Alex Skrypnyk
    0

    Hi jnagarjun2012,

    What database are you using on the server?

    1) If it's MSSQL database - make backup, download it and restore locally. Than you need to change connectionstring on your local machine and that's it.

    2) If you are using SQL CE you have to download db file, it located in the App_Data folder, called Umbraco.sdf and use it

    Ask if it's not clear.

    Best

    Alex

  • Nagarjun 39 posts 71 karma points
    Oct 14, 2016 @ 14:34
    Nagarjun
    0

    Thanks Alex.

    We're using MSSQL server.However for our applications,I'll copy our application dlls to umbraco bin folder.

    When I was working on my local setup I would comment lines of code at places where we're calling classes from umbraco dll.

    I'll try as you suggested. Have a local instance of umbraco and copy my application user controls and class files to it in same structure .

    Let's Say my current solution is like this.

    MySolution

    Folder 1 - class1.cs - class2.cs

    After installing umbraco instance in my local machine I shall do as below.

    Umbraco Setup

    • App_Browsers
    • App_Code
    • App_Data
    • .
    • .
    • .
    • .
    • Folder 1
    •     class1.cs
    •     class2.cs
    • .
    • .
    • .
    • .
    • UserControls
    • XSLT
    • Views
    • Global.asax
    • Web.config

    This is sufficient for my local setup right? Also I'll add connection string to umbraco web.config

Please Sign in or register to post replies

Write your reply to:

Draft