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 DNN with different database ownerUpgrading DNN with different database owner
Previous
 
Next
New Post
8/28/2014 7:37 AM
 

Hello,

     I'm trying to do a DNN upgrade from 4.9.5, but the trick is that this DNN instance has a different database owner than the default, and the upgrade fails, basically none of the sql scripts run successfully because of some permission error. Has anyone used DNN with database owner other than the default? Any help would be greatly appreciated.

 Istvan

 
New Post
8/28/2014 7:46 AM
 
Istvan,
AFAIK all databaseOwner errors have been fixed (big thanks to Matthias), it would help if you provide the concrete log files to look into these issues.
I admit, that a number of 3rd party modules don't implement proper support for non-default owners.

Did you follow the suggested upgrade path via DNN 5.2.3, 5.4.4, 5.6.8, 6.1.2, 6.2.9, 7.1.2?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/2/2014 8:24 AM
 
Hi Sebastian,

Thanks for the quick answer, I don't know why the site didn't notify me about it, I checked the notification box, but anyway: right now I cannot provide you with exact log files, but the same text kept repeating all over the logs, if I remember correctly, it was something like: Cannot find user xxxxx (which is the database owner). Either it doesn't exist or you don't have permission. I will attempt to upgrade again, but on the upgrade path, the suggested route was from 4.9.5 to 5.4.4, I don't see the 5.2.3 in between. Is that the version that I can upgrade to without problems? Or do I need to do anything special to be able to upgrade?

Thanks
 
New Post
9/2/2014 11:03 AM
 
If you encounter issues upgrading from 4.9.5 to 5.4.4 directly, it is a good idea to add 5.2.3 as extra step.
You need to make sure your user is using the same schema as the database owner and has dbowner permission.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/9/2014 7:12 AM
 

Problem is, I don't even get to the point where I upgrade to 5.x. Site is 4.9.0 and I want to upgrade to 4.9.5. Here's a part from one of the log files, Every log file is the same:

 

System.Data.SqlClient.SqlException: Cannot find the object 'dev245_UpdateAffiliateStats', because it does not exist or you do not have permission.
Cannot find the object 'dev245_GetTabModuleSetting', because it does not exist or you do not have permission.
Cannot find the object 'dev245_UpdateAnonymousUser', because it does not exist or you do not have permission.
Cannot find the object 'dev245_Dashboard_GetControls', because it does not exist or you do not have permission.
Cannot find the object 'dev245_DeleteRoleGroup', because it does not exist or you do not have permission.
Cannot find the object 'dev245_AddTabModule', because it does not exist or you do not have permission.
Cannot find the object 'dev245_GetPortalRoles', because it does not exist or you do not have permission.
Cannot find the object 'dev245_GetScheduleByEvent', because it does not exist or you do not have permission.
Cannot find the object 'dev245_DeleteModulePermissionsByUserID', because it does not exist or you do not have permission.
Cannot find the object 'dev245_UpdateScheduleHistory', because it does not exist or you do not have permission.
.
.
.
.

Cannot find the object 'dev245_GetHostSetting', because it does not exist or you do not have permission.
   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText)
   at DotNetNuke.Data.SqlDataProvider.GrantStoredProceduresPermission(String Permission, String LoginOrRole)

declare @exec nvarchar(2000) declare @name varchar(150) declare sp_cursor cursor for select o.name as name from dbo.sysobjects o where ( OBJECTPROPERTY(o.id, N'IsProcedure') = 1 or OBJECTPROPERTY(o.id, N'IsExtendedProc') = 1 or OBJECTPROPERTY(o.id, N'IsReplProc') = 1 ) and OBJECTPROPERTY(o.id, N'IsMSShipped') = 0 and o.name not like N'#%%' and (left(o.name,len('dev245_')) = 'dev245_' or left(o.name,7) = 'aspnet_') open sp_cursor fetch sp_cursor into @name while @@fetch_status >= 0 begin  select @exec = 'grant EXECUTE on ' +  @name  + ' to [public]'  execute (@exec)  fetch sp_cursor into @name end deallocate sp_cursor

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading DNN with different database ownerUpgrading DNN with different database owner


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