Copied to clipboard

Flag this post as spam?

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


  • Scott Stonehouse 3 posts 23 karma points
    May 24, 2012 @ 02:25
    Scott Stonehouse
    0

    2 sdf files?

    Probably a FAQ, but here goes:

    I have a site I created with WebMatrix and the web gallery. Why do I have 2 sdf files? One is Umbraco.sdf and the other is Umbraco (computername).sdf.

  • Eric Petersson 32 posts 116 karma points
    Dec 17, 2015 @ 20:02
    Eric Petersson
    0

    Hi

    Yes, that should be possible by just switching between the two different .sdf files you create in the web.config file:

    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
    
    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco-{your second file}.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
    

    Then depending on which file to be used for which environment, you either comment or uncomment one of the sdf:s.

Please Sign in or register to post replies

Write your reply to:

Draft