p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 (http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0-264/)
-   -   What are the steps to recreate this database? (http://p2p.wrox.com/book-asp-net-2-0-website-programming-problem-design-solution-isbn-978-0-7645-8464-0/66612-what-steps-recreate-database.html)

greglh March 13th, 2008 11:13 AM

What are the steps to recreate this database?
 
My other thread doesn't seem to be getting any response, so I'm willing to build the DB from scratch.

My problem is nothing recognizes it.
#1) I ran aspnet_regsql.exe tool from command line and once I've done with by just double clicking.
#2) I ran the scripts CreateAllObjects.
#3) ASP NET Config tool errors when trying to create users.
NOTE: Keep in mind this is using the same code as the BeerHouse minus code for features: Store, Newsletter, Polls.
Yes my connnection string points to the db.

I have VS2005 and SQLExpress 2005.
Again, I'm just trying to rebuild the DB as they did when the developed it and I'm having a problem attaching or something.
Now I can attach in Server Solution, but when ASP NET Config won't create users for it. An error comes up.

So anyone have the step by step instructions on BUILDING the database from ground up?

Thanks!


englere March 14th, 2008 12:08 PM

Can you create a connection to the DB using Server Explorer, and then drill down on the tables to ensure that the aspnet_* tables have been created?

Is your web.config set up to attach to the DB in app_data? That's what the config tool uses to connect to the db.

Did you have to run the attach commands in SQL Server Management Studio before steps 1 and 2? If so, you may have to detach before you can open the DB from the web.config settings. That whole auto-attach concept is flaky at best. I prefer not to use it. I normally keep my DB's attached to SQL Server, and I modify the connection string in web.config to point to my local DB. But for that to work, you also have to enable the TCP/IP protocol for SQL Server. See the book's readme file for info on the attach.detach commands.

By the way, I thought I'd point out that this is not a step-by-step book, so you can't create the whole DB (all tables and procs) just by following along in the book. The book assumes you know SQL Server and it doesn't give you explicit steps for every detail. Most newbies are better off starting with the canned DB.

Eric



All times are GMT -4. The time now is 11:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.