1.在crm对应的主数据库执行下面存储过程:
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[usp_DisplayEntity](@entityName nvarchar(100), @LangId int=2052)
AS
BEGIN
declare @EntityDisplayName nvarchar(100)
SELECT top 1 @EntityDisplayName=l.Label
FROM MetadataSchema.Entity e with(nolock)
LEFT JOIN MetadataSchema.LocalizedLabel l with(nolock) on e.EntityId =l.ObjectId AND l.ObjectColumnName ='Loca