1 write to SqlDbType
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
72this.SqlDbType = sqldbType;
94 references to SqlDbType
System.Data (94)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (7)
649else if(metadata.metaType.IsPlp && metadata.metaType.SqlDbType != SqlDbType.Xml) { 1114if ((metadata.type == SqlDbType.VarBinary) && (mtSource.IsBinType) && (mtSource.SqlDbType != SqlDbType.Timestamp) && _SqlDataReaderRowSource.IsCommandBehavior(CommandBehavior.SequentialAccess)) { 1119else if (((metadata.type == SqlDbType.VarChar) || (metadata.type == SqlDbType.NVarChar)) && (mtSource.IsCharType) && (mtSource.SqlDbType != SqlDbType.Xml)) { 1123else if ((metadata.type == SqlDbType.Xml) && (mtSource.SqlDbType == SqlDbType.Xml)) { 1336mt = MetaType.GetMetaTypeFromSqlDbType(type.SqlDbType, false); 1401mt = MetaType.GetMetaTypeFromSqlDbType (type.SqlDbType, false); 1407mt = MetaType.GetMetaTypeFromSqlDbType(type.SqlDbType, false);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (8)
5769if (mt.SqlDbType == SqlDbType.Udt) { 5776else if (mt.SqlDbType == SqlDbType.Structured) { 5798if (mt.SqlDbType == SqlDbType.Decimal) { 5824else if (false == mt.IsFixed && false == mt.IsLong && mt.SqlDbType != SqlDbType.Timestamp && mt.SqlDbType != SqlDbType.Udt && SqlDbType.Structured != mt.SqlDbType) { 5861else if (mt.IsPlp && (mt.SqlDbType != SqlDbType.Xml) && (mt.SqlDbType != SqlDbType.Udt)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (11)
582schemaRow[ProviderType] = GetVersionedMetaType(col.metaType).SqlDbType; 1434if (mt.SqlDbType != SqlDbType.Xml) { 1470if (((!mt.IsBinType) || (mt.SqlDbType == SqlDbType.Timestamp)) && (mt.SqlDbType != SqlDbType.Variant)) { 1475if ((mt.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(CommandBehavior.SequentialAccess))) { 1512if (!(mt.IsLong || mt.IsBinType) || (SqlDbType.Xml == mt.SqlDbType)) { 1886if (((!mt.IsCharType) && (mt.SqlDbType != SqlDbType.Variant)) || (mt.SqlDbType == SqlDbType.Xml)) { 1891if ((mt.SqlDbType != SqlDbType.Variant) && (IsCommandBehavior(CommandBehavior.SequentialAccess))) { 3589if ((metaType.IsLong) || (metaType.IsPlp) || (metaType.SqlDbType == SqlDbType.Udt) || (metaType.SqlDbType == SqlDbType.Structured)) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (5)
87Is70Supported = _Is70Supported(SqlDbType); 88Is80Supported = _Is80Supported(SqlDbType); 89Is90Supported = _Is90Supported(SqlDbType); 90Is100Supported = _Is100Supported(SqlDbType); 256switch (mt.SqlDbType) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (47)
348 maxlen = MSS.SmiMetaData.GetDefaultForType( mt.SqlDbType ).MaxLength; 350return new SqlMetaData(this.ParameterName, mt.SqlDbType, maxlen, GetActualPrecision(), GetActualScale(), LocaleId, CompareInfo, 386if ( SqlDbType.NChar == mt.SqlDbType || SqlDbType.NVarChar == mt.SqlDbType ) { 397if ( SqlDbType.Binary == mt.SqlDbType || SqlDbType.VarBinary == mt.SqlDbType ) { 400else if ( SqlDbType.Char == mt.SqlDbType || SqlDbType.VarChar == mt.SqlDbType ) { 403else if ( SqlDbType.NChar == mt.SqlDbType || SqlDbType.NVarChar == mt.SqlDbType ) { 407else if (( maxLen > MSS.SmiMetaData.MaxBinaryLength && ( SqlDbType.Binary == mt.SqlDbType || SqlDbType.VarBinary == mt.SqlDbType )) 408|| ( maxLen > MSS.SmiMetaData.MaxANSICharacters && ( SqlDbType.Char == mt.SqlDbType || SqlDbType.VarChar == mt.SqlDbType )) 409|| ( maxLen > MSS.SmiMetaData.MaxUnicodeCharacters&& ( SqlDbType.NChar == mt.SqlDbType || SqlDbType.NVarChar == mt.SqlDbType )) ) { 432compareOpts = MSS.SmiMetaData.GetDefaultForType( mt.SqlDbType ).CompareOptions; 440if (SqlDbType.Xml == mt.SqlDbType) { 445else if (SqlDbType.Udt == mt.SqlDbType || (SqlDbType.Structured == mt.SqlDbType && !ADP.IsEmpty(this.TypeName))) { 449if (SqlDbType.Udt == mt.SqlDbType) { 483if ( SqlDbType.Decimal == mt.SqlDbType ) { 492if (SqlDbType.Structured == mt.SqlDbType) { 496return new MSS.SmiParameterMetaData( mt.SqlDbType, 503SqlDbType.Structured == mt.SqlDbType, 635return GetMetaTypeOnly().SqlDbType; 649if ((null == metatype) || (metatype.SqlDbType != value)) { 689SqlDbType sqlDbType = GetMetaTypeOnly().SqlDbType; 779if (_internalMetaType.SqlDbType == Data.SqlDbType.Udt) { 791SqlDbType actualType = mt.SqlDbType; 806actualType = MetaType.GetSqlDataType(mt.TDSType, 0 /*no user type*/, 0 /*non-nullable type*/).SqlDbType; 908((currentType != destinationType.SqlType) || (SqlDbType.Xml == destinationType.SqlDbType))) { // Special case for Xml types (since we need to convert SqlXml into a string) 949else if ((typeof(string) == currentType) && (SqlDbType.Time == destinationType.SqlDbType)) { 952else if ((typeof(string) == currentType) && (SqlDbType.DateTimeOffset == destinationType.SqlDbType)) { 955else if ((typeof(DateTime) == currentType) && (SqlDbType.DateTimeOffset == destinationType.SqlDbType)) { 1349if ((null == _coercedValue) || (_internalMetaType.SqlDbType == Data.SqlDbType.Udt)) { // will also be set during parameter Validation 1408return metaType.SqlDbType; 1447else if ( (!ShouldSerializePrecision() && !ShouldSerializeScale()) && (_metaType.SqlDbType == SqlDbType.Decimal) ) { 1497if (metaType.SqlDbType != SqlDbType.Udt && Direction != ParameterDirection.Output) { 1502if (metaType.SqlDbType == SqlDbType.Udt) { 1511if (metaType.SqlDbType == SqlDbType.Structured) { 1537if ((SqlDbType.Udt != mt.SqlDbType) && (false == mt.IsFixed) && (false == mt.IsLong)) { // if type has 2 byte length 1578if (mt.SqlDbType == SqlDbType.Xml) { 1581if (mt.SqlDbType == SqlDbType.NVarChar 1582|| mt.SqlDbType == SqlDbType.VarChar 1583|| mt.SqlDbType == SqlDbType.VarBinary) { 1589switch (mt.SqlDbType) { // widening the SqlDbType is automatic
fx\src\data\System\Data\SqlClient\TdsParser.cs (16)
3432rec.type = rec.metaType.SqlDbType; 4159col.type = col.metaType.SqlDbType; 4241switch (col.metaType.SqlDbType) 8207if (mt.SqlDbType == SqlDbType.Decimal) { 8370if (mt.SqlDbType == SqlDbType.Timestamp) { 8373else if (mt.SqlDbType == SqlDbType.Udt) { 8427if (mt.SqlDbType != SqlDbType.Xml) 8430else if ((!mt.IsVarTime) && (mt.SqlDbType != SqlDbType.Date)) { // Time, Date, DateTime2, DateTimeoffset do not have the size written out 8445if (mt.SqlDbType == SqlDbType.Decimal) { 8463if (_isYukon && (mt.SqlDbType == SqlDbType.Xml)) { 9580((metatype.SqlDbType == SqlDbType.VarBinary && value is StreamDataFeed) || 9581((metatype.SqlDbType == SqlDbType.VarChar || metatype.SqlDbType == SqlDbType.NVarChar) && value is TextDataFeed) || 9582(metatype.SqlDbType == SqlDbType.Xml && value is XmlDataFeed)), 9590switch (metatype.SqlDbType) { 9615else if (metatype.SqlDbType != SqlDbType.Udt || metatype.IsLong) {