code_junkie

How do I refer to APP_Data from another project

Nov 13th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. connectionString="Data Source=.SQLExpress; Integrated Security=true; AttachDbFilename=C:MySolutionMyMVCProjectApp_DataMyDatabase.mdf"
  2.  
  3. connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|MyDatabase.mdf;Integrated Security=True;User Instance=True"
  4.  
  5. connectionString="Data Source=.SQLExpress; Integrated Security=true; AttachDbFilename=" & Server.MapPath("~App_DataMyDatabase.mdf")
Add Comment
Please, Sign In to add comment