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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...another upgrade error from 5.1 to 6.2another upgrade error from 5.1 to 6.2
Previous
 
Next
New Post
10/8/2012 1:19 PM
 

yes,
I will call the dbo 'nigel' - this name is listed in the connection string:

e.g.
<add name="sqldataprovider" type="DotNetNUke.Data.sqlD....... ObjectQualifier="" databaseowner="nigel" />

<connectionStrings>
       <add name="siteSqlServer"  connectionString="Data source=xxx.xxx.xx.xx; Initial Catalog=MyServer; User ID =nigel;.... />"
</connectionStrings>

       <appSettings>
                  <add key="SiteSqlServer" connectionString="Data source=xxx.xxx.xx.xx; Initial Catalog=MyServer; User ID =nigel;.... />"
        ......
        </appSettings>


here is an example of my settings:

SQL2005 settings:
I will call our database: dbTest
User trying to connect to dbTest - I will call 'nigel'.

Secuity >> Logins >> nigel >> Properties:
General: login name = nigel
Default database = dbTest (not sure if this matters)
Server Roles = public is checked (although I have tried checkng everything)
User Mapping = dbTest is checked.     user for this = nigel.     default schema = nigel
Database Role Membership = db_owner and public are checked.
Status = Grant & enabled are checked.

dbTest >> Security >> users >> nigel >> Properties:
user name = nigel
default schema = nigel (not sure f this matters?)
Owned schemas: db_owner & nigel are checked
database role membership: db_owner is checked (uner role members)

Securable: got lots of aspnet stuff listed under Name (e.g. aspnet_AnyDataInTables, aspnet_checkSchemaVersion, aspnet_MembershipChangePassword etc - Type = Stored procedure,
Explicit permissions for all these - all have execute checked under the grant column)

Notes;
* We used to have 3 dnn sites - all use the same connection (nigel as the dbo and nigel as the user and same pwd etc) and all used to work ok .

* We recently made some changes - just moved the mdf and log files and back up files to a new location.

*After the above folder change - we had to create new user accounts with a new login in order to get all sites working again.

 

 
New Post
10/8/2012 1:25 PM
 
dbTest >> Security >> users >> nigel >> Properties:
user name = nigel
default schema = nigel (not sure f this matters?)
Owned schemas: db_owner & nigel are checked
database role membership: db_owner is checked (uner role members)

Change the default schema to dbo and re-run your upgrade - see if that resolves the issue.


Bill
 
New Post
10/9/2012 9:22 AM
 

thanks, I tried changing default schema to 'dbo' but didn't work.

When I run the upgrade using dbo as default schema and dbo as the database owner (in web.config) I get this error:

         Upgrade Error: could not connect to the database specified in the connectionString for sqlDataProvider.

When I change the database owner (in web.config) back to 'nigel'
the upgrade runs, but with the same permission errors as mentioned earlier.

Prior to the upgrade; If I change the database owner (in web.config) to 'dbo' I get an error: 'Site Unavailable'

Prior to the upgrade; If I change the database owner (in web.config) back to 'nigel' the site runs.

However, the site only runs when creating a new login name (and obviously amend web.config connectionString accordingly) 
I am going to call the new user here: 'user_new'.

When I run the upgrade as the new user ('user_new') - it fails and gives this error message:
        The stored procedure 'user_new'.UpdateDatabaseVersionAndName' doesn't exist.

So basically,
 it looks like there was a problem with our original user 'nigel' and this has resulted in us creating a new user, but I can't transfer all the ownership rights over from 'nigel' to the new user.

 
New Post
10/10/2012 1:56 AM
Accepted Answer 
Mark,

Schema and owner are NOT the same thing.

In SqlServer2005 Management Studio, in the security folder, with user nigel selected, set the schema to dbo.

Clear all the boxes in the top section. In the bottom section ensure the database owner box is selected.

Save settings and exit.

In the dnn web.config, revert to the original settings with nigel as the username.

Run the upgrade.

rgds,
Bill
 
New Post
10/10/2012 11:49 AM
 

Thanks for you help Bill.

In sql2005 under my database >> security >> users >> nigel >> I have selected dbo as the default schema...

this, initially resulted in another error saying:
Login name must be specified

Having looked this up, it seemed to be down to an orphaned user.

so i ran the following script:
EXEC sp_change_users_login 'Report'
which listed 'nigel' and its SID

I then ran this script to fix
exec sp_change_users_login'Update_One','dbusername','dbusername'

Eventually it worked and I changed the default schema to 'dbo'.
I also had under user mappings:
User Mapping = dbTest is checked.     user for this = nigel.     default schema = dbo

I could now access the site using 'nigel',

I ran the upgrade again.....

But still got the same errors, although this time, my site is still mostly functional! (except for some issues with some templates on the repository, which i may be able to fix)
Before, all the modules were corrupt after the upgrade.
So I'm not sure if it's worth pursuing the errors, as everything appears to be working so far.

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...another upgrade error from 5.1 to 6.2another upgrade error from 5.1 to 6.2


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