Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...upgrading from 5.1 to 5.4, can't upgrade DNN after sql2005 upgrade, databaseOwner problem?upgrading from 5.1 to 5.4, can't upgrade DNN after sql2005 upgrade, databaseOwner problem?
Previous
 
Next
New Post
12/12/2012 8:23 AM
 

We have a DNN 5.1 site and wish to upgrade to 5.4.

We have recently upgraded our database from SQL2000 to SQL2005.

In our initial install (a few yrs ago) we used a databaseOwner and schema by the same name - called 'nigel'.

Due to previous failed upgrade attempts I have changed the schema name from 'nigel' back to 'dbo'. (also created missing stored procedures, views and tables using dbo).

However, there is still one thing which I can't change from 'nigel' to 'dbo' -
and that is the databaseOwner specified in our web.config - if I chage this to dbo - our site goes down (error msg saying 'site is currently unavailable...').

I am wondering if this could be at the heart of our upgrade problems?
Because we are getting upgrade errors like this:
"system.data.sqlclient.sqlexception : cannot find the object 'upgrade Default Language' because it does not exist or you do not have permission..."

In SQL, I have dbo listed under security >> users > with db_owner checked.

thanks,
mark.

 
New Post
2/1/2013 10:17 AM
 

Found a great article on this:
http://www.ifinity.com.au/Blog/EntryI...
- which basically says that :

"With DotNetNuke 5.2 a new change was introduced, where a specific GRANT EXECUTE statement was run for all the objects on the database..."
e.g."grant EXECUTE on [dnn_DeleteLanguage] to [dnnAdmin]"

"many DotNetNuke installations use a ‘databaseOwner’ – this is specified when you first install the site, and is kept in the web.config entries for the SqlDataProvider object... "

" if you have ‘dbo’ as the database owner, you’ve probably got no problems. But if you have a value like databaseOwner=”hosting_user” then you probably have a problem. This is because each of the above scripts does not specify the ‘owner’ or ‘schema’ of the database object..."

However, I have followed the suggestions on the site above, but still get the errors.

I'm not sure how/where is this code inserted?
grant EXECUTE on hosting_user.[dnn_DeleteLanguage] to [dnnAdmin]

I have ran this script:
EXEC sp_change_users_login @action ='Report'

but I no longer have any orphaned users,
although I did initially have orphaned users when I first upgraded from sql2000 to sql2005 and noticed problems upon my next DNN upgrade.
I thought that I had fully rectified this by using the change_users_login script, but I'm still having the same errors above when upgrading my DNN.

When I run this code:
select * from sys.database_principals where name = ‘hosting_user’

- it doesn't return anything (but I'nm sure I have run the ALTER USER script in the past and so may have already rectified this problem).

I have run this script:
select * from Users
-
And get the ‘invalid object name’ error.

When I upgrade using databaseowner='hostin_user' (or my own version of this name) I get the errors mentioned above (e.g. Cannot find the object...).
If I change the database owner in web.config to this: databaseowner='dbo' - our site goes down
Error msg saying 'site is currently unavailable...'.

All the stored procedures do exist (as I have re-created all the missing ones).

 
New Post
2/8/2013 5:06 AM
 

may have found the answer here:

How to Change Schema of MS SQL Tables, Stored Procedures, and Views All at the Same Time:
https://support.powerdnn.com/KB/a100/...

I'm hoping that this will change my schema owner back to dbo.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...upgrading from 5.1 to 5.4, can't upgrade DNN after sql2005 upgrade, databaseOwner problem?upgrading from 5.1 to 5.4, can't upgrade DNN after sql2005 upgrade, databaseOwner problem?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out