Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2016, 09:47 AM
Registered User
 
Join Date: Apr 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12, page 413

I went through the first TRY IT OUT of Chapter 12.
Everything went fine (I think) until Step 9: "You should see the Genre and Review tables appear as shown in Figure 12-7."

Nope. Those things did not appear.

Any help appreciated. Thanks.
 
Old April 28th, 2016, 10:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you provide more information? Currently, it's impossible to say anything about this.

For example:

1. Post your source code.
2. Up until which step does it work OK?
3. Do you see the reviews and genres in the database?
4. Does your database schema match the one from the book?

Providing detailed steps would help me help you.

Cheers,

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!
 
Old April 28th, 2016, 10:43 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Oh, never mind. I see this is a SQL Server Management Studio exercise.

Are you sure you picked the right database when you ran the scripts? Maybe you added the tables to the Master database instead? What do you see in the list of databases on the left? Does any of the databases have your tables?

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!
 
Old April 28th, 2016, 10:52 AM
Registered User
 
Join Date: Apr 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12, page 413

There is no source code involved in this TRY IT OUT.

I just have to follow the steps in using SSMS to create the PlanetWroxTemp database. Everything apparently works fine except that, at the last step, my schema doesn't match the one in the book because dbo.Genre and dbo.Review do not appear (but everything else - System Tables, File Tables, Views, Synonyms, ..., etc - does).
 
Old April 28th, 2016, 10:58 AM
Registered User
 
Join Date: Apr 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's a bunch of databases, e.g. master, under System Databases.
There is no sign of the Genre and Review tables anywhere.
 
Old April 28th, 2016, 11:04 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Then you either didn't run the script or it errored somehow.

>> There's a bunch of databases, e.g. master, under System Databases.

Don't you see the PlanetWrox database from step 5?


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!
 
Old April 28th, 2016, 11:15 AM
Registered User
 
Join Date: Apr 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yep, the PlanetWroxTemp database is there.

I ran the script a second time and got a long list of messages starting with:

Msg 2714, Level 16, State 6, Line 1
There is already an object named 'Genre' in the database.
Msg 2627, Level 14, State 1, Line 2
Violation of PRIMARY KEY constraint 'PK_Genre'. Cannot insert duplicate key in object 'dbo.Genre'. The duplicate key value is (1).
The statement has been terminated.
Msg 2627, Level 14, State 1, Line 1
Violation of PRIMARY KEY constraint 'PK_Genre'. Cannot insert duplicate key in object 'dbo.Genre'. The duplicate key value is (2).
The statement has been terminated.
...
...
 
Old April 28th, 2016, 02:30 PM
Registered User
 
Join Date: Apr 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm new to all this, but I think these messages suggest that the Genre and Review tables have been created and do now exist.

But they're not appearing under the 'Tables' folder.
 
Old April 29th, 2016, 11:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yep, correct. Then on the left, make sure that the PlanetWrox database is expanded and click Tables. Next, click the Refresh icon on the toolbar above the list of databases. Then expand Tables. Then you should see the Genres and PhotoAlbums tables.

Cheers,

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!
 
Old May 3rd, 2016, 06:45 AM
Registered User
 
Join Date: Apr 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That hasn't made any difference.
Any other ideas what's going wrong?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 12 - page 411 martinedhotman BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 3 April 11th, 2016 04:49 PM
page 413 Arman BOOK: Beginning ASP.NET 4 : in C# and VB 1 May 28th, 2012 03:11 AM
LIKE N'%rock%' Chap 12 - Page 413, #6 jkoyle BOOK: Beginning ASP.NET 4 : in C# and VB 3 September 6th, 2011 02:26 PM
Chapter 12, page 406 lansingmike BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 8 May 18th, 2011 03:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.