Copied to clipboard

Flag this post as spam?

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


  • İdris 34 posts 184 karma points
    Jan 01, 2014 @ 15:58
    İdris
    0

    How to add max data size to string

    I need to increase my database limit. How can i add this code. Below you see my string, and i get "Object reference not set to an instance of an object."

    <add name="umbracoDbDSN" connectionString="Data Source="D:\web sitesi yedek\Umbraco.sdf"; Max Database Size=4000"

       providerName="System.Data.SqlServerCe.4.0" />

    Thanks
  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 01, 2014 @ 16:20
    Dennis Aaen
    0

    Hi Idris,

    Have you tried to write it this way:

    <add name="umbracoDbDSN" connectionString="Data Source="D:\web sitesi yedek\Umbraco.sdf";Max Database Size=256;Persist Security Info=False;" />

    http://stackoverflow.com/questions/2408480/increase-the-size-of-sql-compact-3-5-sdf-file-using-c-sharp

    Hope this helps,

    /Dennis

  • İdris 34 posts 184 karma points
    Jan 02, 2014 @ 12:22
    İdris
    100

    You need to locate the connection string and add: Max Database Size = 4096 (4GB), it works. Wait for 10 minutes.

    web.config file

    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf Max Database Size=4096"

       providerName="System.Data.SqlServerCe.4.0" />

Please Sign in or register to post replies

Write your reply to:

Draft