I need to read data row from SQL Server 2008. The type of one of the columns is VARBINARY(MAX)
. In C# I want to use out parameter to read it (and given scenario satisfies the needs mostly).
But I need to specify the parameter variable size to fill the C# variable. Здесь я предполагаю, что 8000 достаточно ... Но кто знает:
database.AddOutParameter(command, "vbCertificate", DbType.Binary, 8000);
Итак, вопросы следующие: