Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 Error upgrading newly created database
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mort
Starting Member

4 Posts

Posted - 10 July 2005 :  17:58:52  Show Profile
Im using MSDE as database server for hosting my forum, so I don't have access to an Enterprise Damager, which kinda limits my troubleshooting capabilities.

I created a new empty database on my server and then created a server login and database user to let the forum access the database. I used the SA account to generate the database from the setup.asp page, which appeared to go fine (There was no error messages).

For some reason Im told that I now need to upgrade the database... When I try to do that, I am greeted with this friendly message:
quote:

Microsoft OLE DB Provider for ODBC Drivers (0x80040E09)
[Microsoft][ODBC SQL Server Driver][SQL Server]SELECT permission denied on object 'FORUM_TOTALS', database 'MyDatabase', owner 'dbo'.
/SomeFolder/SomeOtherFolder/default.asp, line 89



I'm guessing that the upgrade page attempts to use the regular forum user to manipulate some tables, instead of the SA user I specified when I created the database from the setup.asp file - But thats just a guess on my side.

Any ideas how to fix this, without any more database tools than the OSQL utility ?

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 July 2005 :  18:09:16  Show Profile  Send ruirib a Yahoo! Message
My guess is that the tables were not created, in the database, possibly because your user has no adequate server permissions. I would suggest that you use the sa user to create the database tables, and then change the connection string back to the normal user. That normal user needs to have an adequate database role.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 11 July 2005 :  03:10:32  Show Profile
If you have Access 2000+ you can use an Access Data Project to manage your MSDE database. It's much, much easier than OSQL.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

Mort
Starting Member

4 Posts

Posted - 11 July 2005 :  12:55:22  Show Profile
I tried setting the forum user to be SA and from that point everything worked. Unfortunately when I changed it back to the forum user, the forum stopped working again.

It appears that Snitz forum requires administrative rights to the database, in order to work. I don't feel quite comfortable running the forum as the database administrator, since this violates good database practice.

Are there nobody else who have succeeded in running the Snitz forum on an SQL server, without using administrative access to the database ?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 July 2005 :  13:35:42  Show Profile  Send ruirib a Yahoo! Message
Does your user have dbowner role for the database? Also if you don't want him to have dbowner role, assign db_datareader and db_datawrite roles. That's all that's needed.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Mort
Starting Member

4 Posts

Posted - 13 July 2005 :  11:24:35  Show Profile
Ahh great, granting db_datareader and db_datawriter database roles to the forum user did the trick.

Thanks for the help :).
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 July 2005 :  13:51:25  Show Profile  Send ruirib a Yahoo! Message
You're welcome.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07