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 ...Migrating DB to a different Owner !Migrating DB to a different Owner !
Previous
 
Next
New Post
7/31/2006 9:06 AM
 

Hi

I'm again here with another migration problem.. hope there will be somebody to help me..

I'm migrating my DNN 3.1.1 installation from one server to another... In my previous installation I had 'dbo' as owner of tables, SPs and all other objects.. but in my new server, I have different user 'saami123' as owner. So I changed owner property of all objects to my new user saami123. Regretfully it didn't work. I'm still getting errors like dbo.objectname couldn't be found! I made changes in web.config for new databaseowner=saami123

My question here is..

what steps should be followed for a smooth migration of database under different owners ?
Owner's property should be changed for all db objects or there are some exceptional objects which still need dbo as owner ?

Thanks in advance!

 
New Post
8/1/2006 4:57 PM
 
Anybody help me please   !!!!!!!!
 
New Post
8/1/2006 5:18 PM
 

This is the script I have used to do this (no guarantees at all):

DECLARE @oldOwner sysname,
@newOwner sysname,
@sql varchar(1000)
SELECT  @oldOwner = 'OLD-NAME'  ,
@newOwner = 'NEW-NAME'  ,
@sql = '  IF EXISTS (SELECT NULL FROM INFORMATION_SCHEMA.TABLES  WHERE QUOTENAME(TABLE_SCHEMA)+''.''+QUOTENAME(TABLE_NAME) = ''?''AND TABLE_SCHEMA = '''
+ @oldOwner + '''  ) 
EXECUTE sp_changeobjectowner ''?'', ''' +
@newOwner + ''''EXECUTE sp_MSforeachtable @sql


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
8/5/2006 7:47 AM
 

I changed the owner name of all tables and stored procedures to my user 'isaami_login' still I'm getting the following error! Any Comments please ???

 

Server Error in '/' Application.
EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database ''isaamiDB', owner 'dbo'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database 'isaami_login', owner 'dbo'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException: EXECUTE permission denied on object 'aspnet_CheckSchemaVersion', database 'isaamiDB', owner 'dbo'.]
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +194
   Microsoft.ScalableHosting.Security.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) +363
   Microsoft.ScalableHosting.Security.SqlMembershipProvider.CheckSchemaVersion(SqlConnection connection) +79
   Microsoft.ScalableHosting.Security.SqlMembershipProvider.GetUser(String username, Boolean userIsOnline) +1327
   Microsoft.ScalableHosting.Security.Membership.GetUser(String username, Boolean userIsOnline) +75
   Microsoft.ScalableHosting.Security.Membership.GetUser(String username) +7
   DotNetNuke.Entities.Users.UserController.FillUserMembership(UserInfo objUserInfo) +158
   DotNetNuke.Entities.Users.UserInfo.get_Membership() +50
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +791
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +92
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3717
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
 
New Post
8/6/2006 1:13 AM
 
I don't think the issue is dbo or not dbo, it simply looks like "isaamiDB" does not have the required rights to do what is needed (Execute Permissions).

Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Migrating DB to a different Owner !Migrating DB to a different 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