Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 July 22nd, 2005, 02:12 PM
Authorized User
 
Join Date: Mar 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing Stored Procedures

Hi!
I miss the stored procedures "sp_Accounts_GetCategoryDetails" on page 162 and "sp_Accounts_GetPermissionsInCategory" on page 163.

Can anyone supply the codes for the stored procedures so that I can create them in the database?

Thanx in advance!

 
Old July 22nd, 2005, 10:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just answered this the other day. Please read the other messages before posting a question.

http://p2p.wrox.com/topic.asp?TOPIC_ID=32886
 
Old July 24th, 2005, 09:30 AM
Authorized User
 
Join Date: Mar 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did read your posting, but it didn't help me. I think that I did restore from the backup file. I still miss the stored procedures. If you have the code for the stored procedures I would be very thankful if you could post them here.

 
Old July 25th, 2005, 11:22 AM
Authorized User
 
Join Date: Mar 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I did restore the database from the backup database file. So, if anyone has the time, please, please post the sql-scripts to the stored procedures that I'm missing!
Thanx!

 
Old July 25th, 2005, 02:32 PM
Authorized User
 
Join Date: Mar 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is evidently more people with the same problem as I have... http://p2p.wrox.com/archive/aspdotne...2002-09/10.asp
Can someone please poste these stored procedures:
sp_Accounts_DeleteUser
sp_Accounts_GetUsers
sp_Accounts_GetPermissionDetails
sp_Accounts_GetCategoryDetails
sp_Accounts_GetPermissionsInCategory

 
Old July 25th, 2005, 04:11 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think you should contact Wrox for this. You can try the Errata form: http://wiley.custhelp.com/cgi-bin/wi...nduser/ask.php or the Contact link at the top of this page.

They may be able to fix this somehow. I notice that some of the procedures in the database have names similar to those that are missing. I don't know the book very well, but could it be possible that just the names in the book are incorrect, and that you do have the procedures with a different name?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: The Bends by Radiohead (Track 2 from the album: The Bends) What's This?
 
Old July 25th, 2005, 04:24 PM
Authorized User
 
Join Date: Mar 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx for your reply.
I checked errdata at http://www.wrox.com/WileyCDA/WroxTit...ew_errata.html and I think it should be listed there in case of errors in the book. I will try the Errdata form.
If someone has the code for the stored procedures plase post them here.


 
Old July 25th, 2005, 09:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should pay more attention to detail. The stored procs are in the backup file, just as I said.

In the C# code download (6934download.zip), file "thephile-database-backup".

In the VB.NET code download (8163_code_v7.zip), file "thephile-database-backup".

If you don't believe me, please do a hex dump on this backup file and you'll see the code. Or better yet, just make sure you restore the backup file correctly and look in your database.
 
Old July 26th, 2005, 03:30 AM
Authorized User
 
Join Date: Mar 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using the thephlie-database-backup file... The stored procedures are not there!

 
Old July 26th, 2005, 05:28 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

CREATE PROCEDURE sp_Accounts_DeleteUser
@UserID int
AS
     DECLARE @MemberID int

     SELECT @MemberID = MemberId FROM Forums_Members WHERE UserId = @UserId

     IF @MemberID IS NOT NULL
     BEGIN
          DELETE Forums_Members WHERE UserId = @UserId
          DELETE Forums_Topics WHERE MemberId = @MemberId
          DELETE Forums_Replies WHERE MemberId = @MemberId
     END

     DELETE Accounts_UserRoles WHERE UserId = @UserId
     DELETE ACcounts_Users WHERE UserId = @UserId
GO




Charul Shukla





Similar Threads
Thread Thread Starter Forum Replies Last Post
stored procedures MunishBhatia SQL Server 2005 4 April 12th, 2008 01:39 AM
Stored Procedures umeshtheone SQL Server 2000 0 June 19th, 2007 01:08 AM
Stored Procedures itHighway SQL Server 2000 3 November 23rd, 2005 10:08 AM
Missing Stored Procedures royplus BOOK: ASP.NET Website Programming Problem-Design-Solution 2 July 19th, 2005 02:34 AM
Missing stored procedures royplus All Other Wrox Books 1 July 18th, 2005 09:12 AM





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