Solution 3

And if you're using SQL Server Express Edition you can also attach the mdf to the SQL Server instance by connection string, see: http://www.connectionstrings.com/sql-server-2008[^] and example Attach a database file on connect to a local SQL Server Express instance