Arif Shaikh

Arif Shaikh

  • NA
  • 65
  • 4k

How to attach sql express 2014 .mdf file in install Shield

Aug 27 2016 9:43 AM
How to deploy and setup C# windows application with .mdf file in visual studio 2013.. 
how to add .mdf file in install shield  at a time of setup and deployement.
what should be connection sting in app.config file.
my application run in visual studio (development  environment) but not run  after deployement(.exe) . its give error related to database.
my connection string as bellow :
 
<add name="ConStr"
connectionString="Data Source=(Localdb)\v11.0;AttachDbFilename=|DataDirectory|\ScannerDatabase.mdf;Integrated Security=True"
providerName="System.Data.SqlClient"/>
 
thank you 
 

Answers (1)