Search code examples
sql-servermdf

how to deploy .mdf file


I am trying to make an application, which uses a local .mdf database file (not attached to a sql server). Visual Studio says I have to install SQL Server Express before doing that. I was wondering how I can deploy the application to clients' box. Do they also need SQL Server Express installed?

Thanks a lot


Solution

  • They need SQL Server Express installed. Once installed, you need to attach the database file (.mdf) to the server.