15 references to TYPE_SIZE_LIMIT
System.Data (15)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
2846
length = Math.Min( length, TdsEnums.
TYPE_SIZE_LIMIT
);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (9)
3696
SqlParameter sqlParam = new SqlParameter(null, ((queryText.Length << 1) <= TdsEnums.
TYPE_SIZE_LIMIT
) ? SqlDbType.NVarChar : SqlDbType.NText, queryText.Length);
3790
sqlParam = new SqlParameter(null, ((parameterList.Length << 1) <= TdsEnums.
TYPE_SIZE_LIMIT
) ? SqlDbType.NVarChar : SqlDbType.NText, parameterList.Length);
5492
sqlParam = new SqlParameter(null, ((paramList.Length<<1)<=TdsEnums.
TYPE_SIZE_LIMIT
)?SqlDbType.NVarChar:SqlDbType.NText, paramList.Length);
5498
sqlParam = new SqlParameter(null, ((text.Length<<1)<=TdsEnums.
TYPE_SIZE_LIMIT
)?SqlDbType.NVarChar:SqlDbType.NText, text.Length);
5640
sqlParam = new SqlParameter(null, ((commandText.Length<<1)<=TdsEnums.
TYPE_SIZE_LIMIT
)?SqlDbType.NVarChar:SqlDbType.NText, commandText.Length);
5646
sqlParam = new SqlParameter(null, ((paramList.Length<<1)<=TdsEnums.
TYPE_SIZE_LIMIT
)?SqlDbType.NVarChar:SqlDbType.NText, paramList.Length);
5732
SqlParameter tsqlParameter = new SqlParameter(null, ((execStatement.Length << 1) <= TdsEnums.
TYPE_SIZE_LIMIT
) ? SqlDbType.NVarChar : SqlDbType.NText, execStatement.Length);
5968
sqlParam = new SqlParameter(null, ((paramList.Length<<1)<=TdsEnums.
TYPE_SIZE_LIMIT
)?SqlDbType.NVarChar:SqlDbType.NText, paramList.Length);
5974
sqlParam = new SqlParameter(null, ((text.Length<<1)<=TdsEnums.
TYPE_SIZE_LIMIT
)?SqlDbType.NVarChar:SqlDbType.NText, text.Length);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
291
if (!inferLen || ((byte[]) value).Length <= TdsEnums.
TYPE_SIZE_LIMIT
) {
418
if ((len << 1) > TdsEnums.
TYPE_SIZE_LIMIT
) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (2)
884
if (isSqlVariant && (coercedSize > TdsEnums.
TYPE_SIZE_LIMIT
))
1570
if ((maxSizeInBytes > TdsEnums.
TYPE_SIZE_LIMIT
) || (_coercedValueIsDataFeed) ||
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
336
if (length * ADP.CharSize > TdsEnums.
TYPE_SIZE_LIMIT
) { // send as varchar for length greater than 4000