SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Adding Discussion Forums using SQL Server and ASP

Categories...
Language
VBScript
Product
IIS, SQL Server
Server User Group
Active Server Pages
Task
Components, Database Interface
Technology
Server Scripting, SQL

Sponsored Links
Developer's Paradise : Inside Technique :
Adding Discussion Forums using SQL Server and ASP
Submission by SiteExperts Staff

Go to the resource:
Adding Discussion Forums using SQL Server and ASP

Add to Assistant

Short Description
Part II of our Community Building Series provides shows you how to implement discussion forums.

Long Description
This article builds on Adding Site Registration to show you how to implement discussion forums. With support for an unlimited number of forums and messages, see how easy it is to add discussion forums to your site.

Included are all the SQL and ASP scripts necessary to get you running.

Author
Scott Isaacs
Date/ Version
9/17/1999
Submission URL
http://www.SiteExperts.com/tips/community/ts02/page1.asp
Submission Date
Sep 17,1999
Last Update
Sep 17,1999
 

Discussion and Rate this Resource
Overall Rating: 3.8

kairavi on Sep 27, 2007 at 4:45:37 AMNo Rating
AlecBS on Jun 15, 2004 at 12:32:22 PMNo Rating
What fixed a similar error message to me was running this line once in Query Analyzer.

grant all on DatabaseName.dbo.TableName to Public

-Alec
kwizu on Mar 29, 2002 at 12:33:15 PMRating: 5
works great! cool job guys!
Fantaman on May 29, 2001 at 11:12:15 PMRating: 5

I've got this message, why?

Home Page : User Manager
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]The request for procedure 't_user' failed because 't_user' is a table object.

/inc/utility.asp, line 95

roman3017 on Dec 11, 2000 at 3:27:44 PMRating: 4

It seems like the stored procedure

sp_saveforum

is missing. Could you please post it?

Also I have problem to add those two triggers.

I'm getting an error:

Error 1032: Cannot use the column prefix 'a'. This must match the object in the UPDATE clause 't_topics'.

 

So even after renaming sp_adduser and specifying the proper include directory the sample doesn't work. But as a template it was useful.

 

barky81 on Aug 21, 2000 at 9:08:25 AMRating: 4

Following up on my own post (immediately below this one; slow discussion at this point I guess ;~)  I allowed the issue to stew overnight and here is the answer.

In my particular case, I am working against an Internet MS SQL database (which I cannot access via the Enterprise Manager or the Query Analyzer tools). It's hosted space and I can only access MY specific SQL database via a primative web interface....

In my research, I seem to have discovered that SQL Server includes a *default* stored procedure named "sp_adduser" which is used for adding database users and roles to the admin side of the database (not what we want here at all!). In any event, when the join.asp page calls the stored procedure in it's default configuration, it is actually calling the system level "sp_adduser" not the database level "sp_adduser" created in these scripts.

In my case (a personal SQL database hosted on a remote SQL Server installation), I had to edit the join.asp page as follows:

Set oCmd = GetStoredProcedure(oConn,"[databasename].sp_adduser")

In my case, by adding the name of my database to the stored procedure call, it now accesses the "correct" stored procedure.

I have tested this on my website and it now works. New users are now able to join the site.

Perhaps a different naming convention is called for in the example to avoid this kind of problem (or at least an explanation of the possible confusion)?

Thanks, (and I will now go about the process of testing out the scripts and db interaction to truly evaluate the example--it was kinda hard before...)
   

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.