I've written an app that needs a database. I've been using a local copy of SQL Server on my machine but would like to build a setup for this application that installed it's own database to support the application. I'd rather not have to have the user install SQL on their own and then configure the application.
Can anyone point me in the right direction here?
Create a Setup and Deployment > Setup project in Visual Studio - you can add pre-requisites like enforcing .net framework version, install SQL express and generally configure files/folders/shortcuts.
You can use the attach db file method of the connnection string to actually attach the mdf to the sql server - or - you can write your own sql scripts to run if you need more complex set-ups.