object_id WHERE (tt.name=@_msparam_0 and SCHEMA_NAME(tt.schema_id)=@_msparam_0)',N'@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000)',@_msparam_0=N'DistCritGroupData',@_msparam_0=N'dbo'  exec sp_executesql N'SELECT (case ic.key_ordinal when 0 then ic.index_column_id else ic.key_ordinal end) AS [ID], clmns.name AS [Name] FROM sys.table_types AS tt INNER JOIN sys.schemas AS stt ON stt.schema_id = tt.schema_id INNER JOIN sys.indexes AS i ON (i.index_id > @_msparam_0 and i.is_hypothetical = @_msparam_0) AND (i.object_id=tt.type_table_object_id) INNER JOIN sys.index_columns AS ic ON (ic.column_id > 0 and (ic.key_ordinal > 0 or ic.partition_ordinal = 0 or ic.is_included_column != 0)) AND (ic.index_id=CAST(i.index_id AS int) AND ic.object_id=i.object_id) INNER JOIN sys.columns AS clmns ON clmns.object_id = ic.object_id and clmns.column_id = ic.column_id WHERE (i.name=@_msparam_0)and((tt.name=@_msparam_0 and SCHEMA_NAME(tt.schema_id)=@_msparam_0)) ORDER BY [ID] ASC',N'@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000)',@_msparam_0=N'0',@_msparam_0=N'0',@_msparam_0=N'CIX',@_msparam_0=N'DistCritGroupData',@_msparam_0=N'dbo'  exec sp_executesql N'SELECT clmns.name AS [Name], (case ic.key_ordinal when 0 then ic.index_column_id else ic.key_ordinal end) AS [ID], ic.is_descending_key AS [Descending], ic.is_included_column AS [IsIncluded], CAST(COLUMNPROPERTY(ic.object_id, clmns.name, N''IsComputed'') AS bit) AS [IsComputed] FROM sys.table_types AS tt INNER JOIN sys.schemas AS stt ON stt.schema_id = tt.schema_id INNER JOIN sys.indexes AS i ON (i.index_id > @_msparam_0 and i.is_hypothetical = @_msparam_0) AND (i.object_id=tt.type_table_object_id) INNER JOIN sys.index_columns AS ic ON (ic.column_id > 0 and (ic.key_ordinal > 0 or ic.partition_ordinal = 0 or ic.is_included_column != 0)) AND (ic.index_id=CAST(i.index_id AS int) AND ic.object_id=i.object_id) INNER JOIN sys.columns AS clmns ON clmns.object_id = ic.object_id and clmns.column_id = ic.column_id WHERE (clmns.name=@_msparam_0)and((i.name=@_msparam_0)and((tt.name=@_msparam_0 and SCHEMA_NAME(tt.schema_id)=@_msparam_0)))',N'@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000),@_msparam_0 nvarchar(0000)',@_msparam_0=N'0',@_msparam_0=N'0',@_msparam_0=N'O