var sql = $@" SELECT bc.[Barcode] FROM @barcodes AS bc WHERE NOT EXISTS ( SELECT [Id] FROM [app].[MasterProduct] AS mp WHERE mp.[Barcode] = bc.[Barcode] ); ";
IF TYPE_ID('[app].[udt_ProductCompare]') IS NOT NULL DROP TYPE [app].[udt_ProductCompare]; CREATE TYPE [app].[udt_ProductCompare] AS TABLE ( [Barcode] nvarchar NOT NULL UNIQUE )
am getting this error any one can help me out with this
"There are not enough fields in the Structured type. Structured types must have at least one field"