How would I insert values from a table valued parameter into a table
as it is right now it doesnt work.
Which is the best way of doing this?
ALTER PROCEDURE [dbo].[SaveDomainObject]
@Fields dbo.TemplateFieldsAsSqlParameter READONLY
AS
BEGIN
INSERT INTO DomainObjectFields
VALUES (@UniqueKeyDomainObjectField, @Fields.FieldName, @Fields.FieldValue,@DateCreated, @DateUpdated, @Fields.AllowDuplicates)
END
the compiler tells me I need to daclere the Scalar variable @Fields.
How would I dothis?
kind regards