title: How to build a project in VS12 with DB in SQL Server2012
body: <p>I have developed a vb.net project in VS12 with DB in SQL Server 2012. I need to publish it as .exe or .msi file. But I can't do so in VS2012 ultimate. During publishing, it shows an error </p>
  
  <blockquote>
    <p>" System.InvalidOperationException the connection string has not  been
    initialized" </p>
  </blockquote>
  
  <p>Database(.mdf) is in the root folder of sql server.It is accessible when running in VS2012.When I build the project,I don't know how to link database with the exe. I don't know how to make exe or msi package with database on local machine. Please help me to build my vb.net project to exe with database. </p>