Hey,
Im trying to delete an sdf file in the .NET mobile framework, but I get a "File in use" Exception. How do I disable the file so I can delete it?
I want to replace the sdf file with a new sdf file.
Hey,
Im trying to delete an sdf file in the .NET mobile framework, but I get a "File in use" Exception. How do I disable the file so I can delete it?
I want to replace the sdf file with a new sdf file.
SQL Server Compact Edition databases (sdf is the extension for database files) are hosted in process, you will need to close any connections and possibly stop any processes that had them open to delete this file.
Typical candidate processes that can cause this problem are the application itself, Visual Studio or SQL Server Management Studio.