G
Guest
hi folks
I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which
appears to have 100% unanimous approval on Amazon.
I got the book and downloaded the code and I opened the solution.
in his readme.txt he recommends that you move the database files he gives
you in the App_data folder (called oddly aspnet.mdf and aspnet_log.mdf) and
then attach them using sp_attach and rename them
I renamed these TheBeerHouse (mdf and ldf) and put them on another drive on
my XP prof machine and attached them to my SQL server 2005 (developer
edition) and I changed the connection string in web.config to reflect my
local settings.
everything works when I press F5, but my question is, what is the point of
app_data folder, it now has the non-attached original database that Bellinaso
provided in the download and I can't figure out a way to view the real data
on the SQL server through visual studio 2005 (but I can through the SQL
server management console). When I tried to add the now attached
TheBeerHouse.mdf file, I was informed that the file was in use (i.e by the
SQL server 2005 service)
should I have kept the database files in App_data and attached them to SQL
server from there? if not why would anyone ever use App_data, since SQL
server has its own data directory! I ask all this as an old C# asp.net 1.1
hand and am slightly baffled by the need for this data folder...
Regards and thanks in advance,
Charles
I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which
appears to have 100% unanimous approval on Amazon.
I got the book and downloaded the code and I opened the solution.
in his readme.txt he recommends that you move the database files he gives
you in the App_data folder (called oddly aspnet.mdf and aspnet_log.mdf) and
then attach them using sp_attach and rename them
I renamed these TheBeerHouse (mdf and ldf) and put them on another drive on
my XP prof machine and attached them to my SQL server 2005 (developer
edition) and I changed the connection string in web.config to reflect my
local settings.
everything works when I press F5, but my question is, what is the point of
app_data folder, it now has the non-attached original database that Bellinaso
provided in the download and I can't figure out a way to view the real data
on the SQL server through visual studio 2005 (but I can through the SQL
server management console). When I tried to add the now attached
TheBeerHouse.mdf file, I was informed that the file was in use (i.e by the
SQL server 2005 service)
should I have kept the database files in App_data and attached them to SQL
server from there? if not why would anyone ever use App_data, since SQL
server has its own data directory! I ask all this as an old C# asp.net 1.1
hand and am slightly baffled by the need for this data folder...
Regards and thanks in advance,
Charles