View Single Post
  #2 (permalink)  
Old November 23rd, 2010, 12:36 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You have at least two alternatives:

1) use the database attached to SQL Server Express. For information about changing your connection string, check out Appendix B

2) Detach the database and then move it to App_Data and update your connection string. To see where the physical files are located before detaching, open the properties dialog for your database in SQL Server Management Studio and look in the File category. In the Path column you see the folder where the file are stored. Then close that dialog, right-click your database and choose Tasks | Detach.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
demac3 (November 23rd, 2010)