简体   繁体   English

确定如何将Dynamics CRM-2011自定义实体存储在SQL Server CCRM数据库中

[英]Determining how Dynamics CRM-2011 custom entity is stored in SQL Server CCRM database

A custom entity for storing email templates is created in my Dynamics CRM - 2011 on-premise instance. 在我的Dynamics CRM-2011内部部署实例中创建了一个用于存储电子邮件模板的自定义实体。 I can see the entity in CRM instance but not able to find it in SQL Server CCRM database. 我可以在CRM实例中看到该实体,但无法在SQL Server CCRM数据库中找到它。 Any help on how to query the entity schema in DB? 关于如何查询数据库中的实体模式有帮助吗?

I have to move all the templates stored to a new on-premise CRM instance. 我必须将所有存储的模板移到新的本地CRM实例中。 Is there a better way to achieve this? 有没有更好的方法来实现这一目标?

Thanks. 谢谢。

You should be able to find two tables: 您应该能够找到两个表:

[ YourOrganization _MSCRM].[dbo].[ EntitySchemaName Base] [ YourOrganization _MSCRM]。[dbo]。[ EntitySchemaName库]

[ YourOrganization _MSCRM].[dbo].[ EntitySchemaName ExtensionBase] [ YourOrganization _MSCRM]。[dbo]。[ EntitySchemaName ExtensionBase]

Copying data directly into the CRM SQL database is unsupported. 不支持将数据直接复制到CRM SQL数据库。 In general, the only supported direct use of CRM's SQL database is to read from the Filtered Views and create custom indexes. 通常,CRM SQL数据库唯一受支持的直接使用是从筛选视图中读取并创建自定义索引。

It would be best to copy the templates to the new instance in a supported way. 最好以受支持的方式将模板复制到新实例。 Supported ways to import data into CRM include writing custom code against the SOAP or REST Organization Services, using an ETL tool that provides a Dynamics CRM Connector (such as Scribe or KingswaySoft on SSIS), and the Bulk Import Wizard. 支持的将数据导入CRM的方法包括使用提供Dynamics CRM连接器的ETL工具(例如SSIS上的Scribe或KingswaySoft)和批量导入向导针对SOAP或REST组织服务编写自定义代码。

Depending on how much data you're moving, the easiest way to go is probably to export to Excel and import into the new system via the Bulk Import Wizard. 根据要移动的数据量,最简单的方法可能是导出到Excel并通过批量导入向导导入到新系统中。

Otherwise, the CRM 2011 SDK provides the DLL's and examples for writing C# to hit the SOAP service, as well as an example JavaScript library for using the REST endpoint (sdk.rest.js). 否则, CRM 2011 SDK提供DLL和用于编写C#来打SOAP服务的示例,以及用于使用REST端点的示例JavaScript库(sdk.rest.js)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM