For getting a list of all custom fields names and types for any Dynamics CRM (On-Premises) custom entity, run below SQL script using SQL Server Management Studio :
USE [CRMDatabaseName] SELECT c.NAME ,t.NAME FROM syscolumns c INNER JOIN sys.types t ON t.system_type_id = c.xtype WHERE id = object_id('CustomEntityTableName') AND c.NAME LIKE 'new_%'
Note : Replace new with your solution prefix  :)
          Remove (and c.name LIKE 'new_%') for getting all of custom and system fields. 
 
 
seriously?
ReplyDelete