I want to pass a table valued parameter as a variable to a stored procedure and in the constructor of class SqlMetadata
one can specify the length (long maxLength) of the string one wants to add in the column of the table.
Microsoft.SqlServer.Server.SqlMetaData[] tvpdefinition =
{
new SqlMetaData("ValueOne", SqlDbType.NVarChar, 100),
new SqlMetaData("ValueTwo",SqlDbType.NVarChar, 100)
}
How can one go about specifying a 'max' length so that it corresponds with this column
ValueOne (nvarchar(max), not null)
as opposed to a length value of 100 for example