Sql server 错误:导入'时出错;系统表';肯蒂科的对象(电子商务-SKU)

Sql server 错误:导入'时出错;系统表';肯蒂科的对象(电子商务-SKU),sql-server,kentico,Sql Server,Kentico,从使用sa loggin在本地运行的Kentico创建的文件导入到使用托管空间登录在托管站点上运行的Kentico实例时遇到问题 尝试导入导出文件时发生以下错误。Kentico版本在导出和导入位置为7.31 > ERROR: Error importing 'System tables' objects (Ecommerce - SKU) Message: [ TableManager.UpdateDocumentViews() ] An error occurred. Original

从使用sa loggin在本地运行的Kentico创建的文件导入到使用托管空间登录在托管站点上运行的Kentico实例时遇到问题

尝试导入导出文件时发生以下错误。Kentico版本在导出和导入位置为7.31

> ERROR:  Error importing 'System tables' objects (Ecommerce - SKU)
Message: [ TableManager.UpdateDocumentViews() ] An error occurred. Original exception: [DataConnection.HandleError]: Query:
CREATE UNIQUE CLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_NodeSiteID_DocumentCulture_NodeID] ON [View_CMS_Tree_Joined_Regular]
(
[NodeSiteID] ASC,
[DocumentCulture] ASC,
[NodeID] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF)

CREATE NONCLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_ClassName_NodeSiteID_DocumentForeignKeyValue_DocumentCulture] ON [View_CMS_Tree_Joined_Regular]
(
[ClassName] ASC,
[NodeSiteID] ASC,
[DocumentForeignKeyValue] ASC,
[DocumentCulture] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF)
: caused exception: Index cannot be created on view 'View_CMS_Tree_Joined_Regular' because the underlying object 'CMS_Class' has a different owner. Stack Trace: at CMS.DataEngine.TableManager.RefreshDocumentViews()
at CMS.DataEngine.TableManager.RefreshCustomViews(String tableName)
at CMS.CMSImportExport.ImportProvider.UpdateObject(SiteImportSettings settings, GeneralizedInfo infoObj, Boolean siteObject, DataSet ds, TranslationHelper th, Boolean updateChild, Int32 targetSiteId, ProcessObjectEnum process, Dictionary`2 importedParentIDs, List`1 postProcessList, List`1 affectedObjects, BaseInfo parentObject, Boolean postProcessing)
at CMS.CMSImportExport.ImportProvider.ImportObjects(SiteImportSettings settings, DataSet ds, String objectType, Boolean siteObjects, TranslationHelper th, Boolean importChild, ProcessObjectEnum processType, Dictionary`2 importedParentIDs)

ERROR:  Error during import process
Message: [ TableManager.UpdateDocumentViews() ] An error occurred. Original exception: [DataConnection.HandleError]: Query:
CREATE UNIQUE CLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_NodeSiteID_DocumentCulture_NodeID] ON [View_CMS_Tree_Joined_Regular]
(
[NodeSiteID] ASC,
[DocumentCulture] ASC,
[NodeID] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF)

CREATE NONCLUSTERED INDEX [IX_View_CMS_Tree_Joined_Regular_ClassName_NodeSiteID_DocumentForeignKeyValue_DocumentCulture] ON [View_CMS_Tree_Joined_Regular]
(
[ClassName] ASC,
[NodeSiteID] ASC,
[DocumentForeignKeyValue] ASC,
[DocumentCulture] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF)
: caused exception: Index cannot be created on view 'View_CMS_Tree_Joined_Regular' because the underlying object 'CMS_Class' has a different owner. Stack Trace: at CMS.CMSImportExport.ImportProvider.ImportObjects(SiteImportSettings settings, DataSet ds, String objectType, Boolean siteObjects, TranslationHelper th, Boolean importChild, ProcessObjectEnum processType, Dictionary`2 importedParentIDs)
at CMS.CMSImportExport.ImportProvider.ImportObjectType(SiteImportSettings settings, String objectType, Boolean siteObject, TranslationHelper th, ProcessObjectEnum process, Dictionary`2 importedParentIDs)
at CMS.CMSImportExport.ImportProvider.ImportObjectsData(SiteImportSettings settings) 
我注意到站点上的一些表名有不同的所有者,有些是dbo,有些是在我的用户登录下。我想这是因为这是我在Kentico app.config中的用户日志。我在连接ManagementStudio时使用相同的登录名

我认为dbo对象一定是通过数据库的恢复创建的(我认为它们不可能是由Kentico安装创建的,因为它应该使用我的登录名登录)


我想一个解决办法是停止使用导出功能——只恢复数据库,但导出功能很方便。如果我们能够

在站点管理器->设置->系统中设置为DB objects模式的值是多少,我们希望它能够正常工作?
此设置应与DB模式匹配,并且所有对象都应具有相同的设置。我建议统一表和视图架构,使其具有相同的名称。

在站点管理器->设置->系统中设置为DB对象架构的值是多少?
此设置应与DB模式匹配,并且所有对象都应具有相同的设置。我建议统一表和视图架构,使其具有一个相同的名称。

我通过将用户名的默认架构更改为dbo来解决此问题,在SQL Server Management Studio中,我通过将用户名的默认架构更改为dbo来解决此问题,在SQL Server Management Studio中,两台计算机上的安装是否相同?当您没有在源计算机上安装所有模块时(即使您没有使用它们),就会出现此问题。配置导入时,请尝试排除系统表的所有电子商务对象。

两台计算机上的安装是否相同?当您没有在源计算机上安装所有模块时(即使您没有使用它们),就会出现此问题。配置导入时,请尝试排除系统表的所有电子商务对象