Installation - user does not have permission to alter the database schema

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
10/5/2010 7:04:44 PM
Gravatar
Total Posts 17

Installation - user does not have permission to alter the database schema

Hi All,

I am new to mojoPortal, but not ASP.NET development.  I am using the deployment zip: mojoportal-2-3-5-3-mssql-net40-deploymentfiles.zip

on my dev machine (Windows 7) using a remote SQL Server 2008 \ Windows Server 2008 machine.

I am getting the following error when hitting page for first time:

Probing system...
File system permissions ok.
MSSQL database connection ok.
mojoSetup has detected that the database user does not have permission to alter the database schema. You need to correct this or provide a connection string with sufficient permission.

I made sure my user has full ownership of the database, etc, etc, and have scoured the net looking for something else.  Does anyone have any insight to my problem and maybe to get me to a successful install?

 

Thanks in advance

10/6/2010 7:27:11 AM
Gravatar
Total Posts 18439

Re: Installation - user does not have permission to alter the database schema

It tries to create a table and then alter the table then delete the table, if it fails it gives this error. If the user is not dbo then it will not work.

However, it is trying to use the [dbo]. prefix, in some installations depending on sql server settings the user might have permissions but not really be dbo and therefore the prefix will not work. 

There is a setting in Web.config to override it, but your mileage may vary in getting it to work. It would be much easier if your user really is dbo.

<!-- do not change this unless you understand the workings of the code
     and have a reason to change it. -->
    <add key="MSSQLOwnerPrefix" value="[dbo]."/>

You may need to make it blank or make it use the username like [username].

But I make no promise whether it will work for you. I recommend use a dbo user for installation and upgrades, though you could potentially use a less powerful user after installation. ie, you could install using sa, but then create a user with only exec permissions on all procedures and use that user after installation.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.