title: c# VS2012 how to use .mdf db script to create database
body: <p>I have <code>Magazine.mdf</code> database file created in SQL Server 2012 and program created in VS2012.</p>
  
  <p>What is good way to create this base on user system? </p>
  
  <p>I can use script of database? </p>
  
  <p>If yes how to auto install libaries for SQL Server <code>.mdf</code> database with my program and run this script?</p>
  
  <p>Target user needs a program that will install on his system, and the first time run create the database.</p>
  
  <p>I'm standing in front of wall. Thanks for help!</p>