I have read many articles here, but haven\'t quite found the solution. I have a SQL Server Express database that is used by my VB.NET application. I have packaged and deployed t
You should to attach your file to the Sql Server instance.
attach
CREATE DATABASE YourDatabaseName ON (FILENAME = 'C:\your\data\directory\your_file.mdf'), (FILENAME = 'C:\your\data\directory\your_file_Log.ldf') FOR ATTACH;