The database file is larger than the configured maximum database size. RRS feed

  • Question

  • I'm getting this error while trying to insert records into a SQL Server Compact Edition database. I have pasted my connection string that was used when creating the database as well as for accessing that same database from my Windows application.

    Thanks for any help any of you can give!

    Data Source=OnTheGo.sdf;Encrypt Database=True;Password=<password>;Max Database Size=4091

    Tuesday, March 20, 2007 12:37 PM


All replies

  • According to the BOL, the property must read ssce:max database size=4091
    Tuesday, March 20, 2007 7:38 PM
  • I shall give this a try.. however... since everything that I had read regarding connecting to SqlCE databases from .NET has not mentioned this as required I did not add it. I will give it a try and repost once I have come to a conclusion.


    Thanks João!

    Wednesday, March 28, 2007 2:34 PM