332 references to ODB
System.Data (332)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
2232string filename = (string)ADP.ClassesRootRegistryValue(System.Data.OleDb.ODB.DataLinks_CLSID, ADP.StrEmpty); 2253throw System.Data.OleDb.ODB.MDACNotAvailable(e);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (28)
60Debug.Assert(ODB.SizeOf_tagDBBINDING <= offset, "invalid offset" + offset); 345throw ODB.GVtUnknown(DbType); 377throw ODB.GVtUnknown(DbType); 535throw ODB.SVtUnknown(DbType); 566RowBinding.WriteInt16(ValueOffset, (short)(value ? ODB.VARIANT_TRUE : ODB.VARIANT_FALSE)); 1108throw ODB.ConversionRequired(); 1133throw ODB.ConversionRequired(); 1145throw ODB.ConversionRequired(); 1168throw ODB.ConversionRequired(); 1187throw ODB.ConversionRequired(); 1219throw ODB.ConversionRequired(); 1249throw ODB.ConversionRequired(); 1267throw ODB.ConversionRequired(); 1297throw ODB.ConversionRequired(); 1327throw ODB.ConversionRequired(); 1357throw ODB.ConversionRequired(); 1378throw ODB.ConversionRequired(); 1399throw ODB.ConversionRequired(); 1427throw ODB.ConversionRequired(); 1439throw ODB.ConversionRequired(); 1472return ODB.BadAccessor(); 1474return ODB.CantConvertValue(); // 1478return ODB.SignMismatch(expectedType); 1480return ODB.DataOverflow(expectedType); 1482return ODB.CantCreate(expectedType); 1484return ODB.Unavailable(expectedType); 1486return ODB.UnexpectedStatusValue(StatusValue());
fx\src\data\System\Data\OleDb\DBBindings.cs (1)
358ODB.CommandParameterStatus(builder, i, columnBindings[i].StatusValue());
fx\src\data\System\Data\OleDb\DBPropSet.cs (10)
36IntPtr countOfBytes = (IntPtr)(propertysetCount * ODB.SizeOf_tagDBPROPSET); 107ODB.GetErrorDescription(errorInfo, lastErrorHr, out message); 126for (int i = 0, offset = 0; i < count; ++i, offset += ODB.SizeOf_tagDBPROPSET) { 132IntPtr vptr = ADP.IntPtrOffset(rgProperties, ODB.OffsetOf_tagDBPROP_Value); 133for (int k = 0; k < cProperties; ++k, vptr = ADP.IntPtrOffset(vptr, ODB.SizeOf_tagDBPROP)) { 170IntPtr propertySetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index * ODB.SizeOf_tagDBPROPSET); 177IntPtr ptr = ADP.IntPtrOffset(propset.rgProperties, i * ODB.SizeOf_tagDBPROP); 203IntPtr countOfBytes = (IntPtr)(properties.Length * ODB.SizeOf_tagDBPROP); 211IntPtr propsetPtr = ADP.IntPtrOffset(DangerousGetHandle(), index * ODB.SizeOf_tagDBPROPSET); 232IntPtr propertyPtr = ADP.IntPtrOffset(propset.rgProperties, i * ODB.SizeOf_tagDBPROP);
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (3)
190static private readonly NativeDBType D_Variant = new NativeDBType(0xff, ODB.SizeOf_Variant, true, false, OleDbType.Variant, NativeDBType.VARIANT, S_VARIANT, typeof(System.Object), NativeDBType.VARIANT, DbType.Object ); // 31 - ubyte[16] (variant) 288throw ODB.InvalidOleDbType(enumOleDbType); 408throw ODB.DBBindingGetVector();
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (7)
164e = new OleDbException(Res.GetString(Res.OleDb_NoErrorInformation2, provider, ODB.ELookup(hr)), hr, inner); 167e = new OleDbException(Res.GetString(Res.OleDb_NoErrorInformation, ODB.ELookup(hr)), hr, inner); 270return Res.GetString(Res.OleDb_NoErrorMessage, ODB.ELookup(errorcode)); 273return Res.GetString(Res.OleDb_FailedGetDescription, ODB.ELookup(errorcode)); 276return Res.GetString(Res.OleDb_FailedGetSource, ODB.ELookup(errorcode)); 288message = FailedGetDescription(hr) + Environment.NewLine + ODB.ELookup(hresult); 291message = ODB.ELookup(hresult);
fx\src\data\System\Data\OleDb\OleDbCommand.cs (35)
371throw ODB.NoProviderSupportForParameters(_connection.Provider, (Exception)null); 400OleDbHResult hr = bindings.CreateAccessor(iaccessor, ODB.DBACCESSOR_PARAMETERDATA); 586int state = ODB.InternalStateClosed; 618case ODB.ExecutedIMultipleResults: 622case ODB.ExecutedIRowset: 627case ODB.ExecutedIRow: 631case ODB.PrepareICommandText: 647state = ODB.InternalStateOpen; // MDAC 72655 650if (ODB.InternalStateOpen != state) { 662if (ODB.ExecutedIMultipleResults == resultType) { 694if ((null == dataReader) && (ODB.InternalStateOpen != state)) { // MDAC 67218 721return ODB.PrepareICommandText; 778hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_IMultipleResults, dbParams, out _recordsAffected, out executeResult); 783return ODB.ExecutedIMultipleResults; 795hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_IRowset, dbParams, out _recordsAffected, out executeResult); 800hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_NULL, dbParams, out _recordsAffected, out executeResult); 804return ODB.ExecutedIRowset; 814hr = _icommandText.Execute(ADP.PtrZero, ref ODB.IID_IRow, dbParams, out _recordsAffected, out executeResult); 819return ODB.ExecutedIRow; 823return ODB.ExecutedIRow; 849e = ODB.CommandParameterStatus(builder.ToString(), e); 907tableID.eKind = ODB.DBKIND_NAME; 920hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, propSet.PropertySetCount, propSet.DangerousGetHandle(), out executeResult); 932hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 938hr = iopenRowset.Value.OpenRowset(ADP.PtrZero, tableID, ADP.PtrZero, ref ODB.IID_IRowset, 0, IntPtr.Zero, out executeResult); 952return ODB.ExecutedIRowset; 1032if (0 == (ODB.DBPROPVAL_SQL_ODBC_MINIMUM & _connection.SqlSupport())) { 1082hr = _icommandText.SetCommandText(ref ODB.DBGUID_DEFAULT, commandText); 1190connection.CheckStateOpen(ODB.Properties); 1200throw ODB.CommandTextNotSupported(connection.Provider, null); 1234dbprops[0] = new tagDBPROP(ODB.DBPROP_COMMANDTIMEOUT, false, CommandTimeout); 1238dbprops[1] = new tagDBPROP(ODB.DBPROP_ACCESSORDER, false, ODB.DBPROPVAL_AO_RANDOM); // MDAC 73030 1242dbprops[2] = new tagDBPROP(ODB.DBPROP_UNIQUEROWS, false, keyInfo); 1245dbprops[3] = new tagDBPROP(ODB.DBPROP_IColumnsRowset, false, true);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (14)
185int index = columns.IndexOf(ODB.PARAMETER_NAME); 188index = columns.IndexOf(ODB.PARAMETER_TYPE); 191index = columns.IndexOf(ODB.DATA_TYPE); 194index = columns.IndexOf(ODB.CHARACTER_MAXIMUM_LENGTH); 197index = columns.IndexOf(ODB.NUMERIC_PRECISION); 200index = columns.IndexOf(ODB.NUMERIC_SCALE); 203index = columns.IndexOf(ODB.TYPE_NAME); // MDAC 72315 206DataRow[] dataRows = table.Select(null, ODB.ORDINAL_POSITION_ASC, DataViewRowState.CurrentRows); // MDAC 70928 301throw ODB.NoProviderSupportForSProcResetParameters(connection.Provider); // MDAC 71968 304throw ODB.NoProviderSupportForSProcResetParameters(connection.Provider); // MDAC 70918 311case ODB.DBPARAMTYPE_INPUT: 313case ODB.DBPARAMTYPE_INPUTOUTPUT: 315case ODB.DBPARAMTYPE_OUTPUT: 317case ODB.DBPARAMTYPE_RETURNVALUE:
fx\src\data\System\Data\OleDb\OleDbConnection.cs (24)
82value = GetDataSourceValue(OleDbPropertySetGuid.DBInit, ODB.DBPROP_INIT_TIMEOUT); 116value = GetDataSourceValue(OleDbPropertySetGuid.DataSource, ODB.DBPROP_CURRENTCATALOG); 119value = GetDataSourceValue(OleDbPropertySetGuid.DBInit, ODB.DBPROP_INIT_CATALOG); 148value = GetDataSourceValue(OleDbPropertySetGuid.DBInit, ODB.DBPROP_INIT_DATASOURCE); 150value = GetDataSourceValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_DATASOURCENAME); // MDAC 76248 190string value = ((null != constr) ? constr.ConvertValueToString(ODB.Provider, null) : null); 229object value = GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_CONNECTIONSTATUS); 233case ODB.DBPROPVAL_CS_UNINITIALIZED: // provider closed on us 234case ODB.DBPROPVAL_CS_COMMUNICATIONFAILURE: // broken connection 240case ODB.DBPROPVAL_CS_INITIALIZED: // everything is okay 302object value = GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_QUOTEDIDENTIFIERCASE); 330SetDataSourcePropertyValue(OleDbPropertySetGuid.DataSource, ODB.DBPROP_CURRENTCATALOG, ODB.Current_Catalog, true, value); 424quotePrefix = connection.GetLiteralInfo(ODB.DBLITERAL_QUOTE_PREFIX); 425quoteSuffix = connection.GetLiteralInfo(ODB.DBLITERAL_QUOTE_SUFFIX); 449throw ODB.InvalidRestrictionsDbInfoLiteral("restrictions"); 455throw ODB.InvalidRestrictionsSchemaGuids("restrictions"); 461throw ODB.InvalidRestrictionsDbInfoKeywords("restrictions"); 470throw ODB.SchemaRowsetsNotSupported(Provider); // MDAC 72689 473throw ODB.NotSupportedSchemaTable(schema, this); // MDAC 63279 529if ((0!=(ODB.DBPROPVAL_OS_TXNENLISTMENT & ((OleDbConnectionString)(this.ConnectionOptions)).OleDbServices)) 555ODB.PropsetSetFailure(builder, description, dbprops[0].dwStatus); 557e = ODB.PropsetSetFailure(builder.ToString(), e); 618e = ODB.NoErrorInformation((null != connection) ? connection.Provider : null, hresult, null); // OleDbException
fx\src\data\System\Data\OleDb\OleDbConnectionFactory.cs (1)
65String providerFileName = oleDbOuterConnection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,ODB.DBPROP_PROVIDERFILENAME) as string;
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (18)
95throw ODB.PossiblePromptNotUserInteractive(); 179object value = GetDataSourceValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_DBMSVER); 263throw ODB.TransactionsNotSupported(Provider, (Exception)null); 327throw ODB.TransactionsNotSupported(Provider, (Exception)null); 400for (int i = 0; i < literalCount; ++i, offset += ODB.SizeOf_tagDBLITERALINFO) { 429DataTable table = new DataTable(ODB.DbInfoKeywords); 431DataColumn keyword = new DataColumn(ODB.Keyword, typeof(String)); 474DataTable table = new DataTable(ODB.SchemaGuids); 477DataColumn schemaGuid = new DataColumn(ODB.Schema, typeof(Guid)); 478DataColumn restrictionSupport = new DataColumn(ODB.RestrictionSupport, typeof(Int32)); 512if ((1 == literalCount) && Marshal.ReadInt32(literalInfo, ODB.OffsetOf_tagDBLITERALINFO_it) == literal) { // WebData 98612 552for (int i = 0, offset = 0; i < supportedSchemas.Length; ++i, offset += ODB.SizeOf_Guid) { 553IntPtr ptr = ADP.IntPtrOffset(schemaGuids, i * ODB.SizeOf_Guid); 579throw ODB.SchemaRowsetsNotSupported(Provider); 586hr = dbSchemaRowset.GetRowset(ADP.PtrZero, ref schema, restrictions.Length, restrictions, ref ODB.IID_IRowset, 0, ADP.PtrZero, out rowset); 644Type datalink = Type.GetTypeFromCLSID(ODB.CLSID_DataLinks, true); 670throw ODB.MDACNotAvailable(e); 673throw ODB.MDACNotAvailable(null);
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (14)
182object value = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_SQLSUPPORT); 195object value = command.GetPropertyValue(OleDbPropertySetGuid.Rowset, ODB.DBPROP_IRow); 208object value = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo, ODB.DBPROP_MULTIPLERESULTS); 210supportMultipleResults = (ODB.DBPROPVAL_MR_NOTSUPPORTED != (int) value); 328throw ODB.AsynchronousNotSupported(); 365if (ODB.CLSID_MSDASQL == classidProvider) { 366throw ODB.MSDASQLNotSupported(); 368object tmp = ADP.ClassesRootRegistryValue("CLSID\\{" + classidProvider.ToString("D", CultureInfo.InvariantCulture) + "}", ODB.OLEDB_SERVICES); 380_oledbServices &= ~(ODB.DBPROPVAL_OS_AGR_AFTERSESSION | ODB.DBPROPVAL_OS_CLIENTCURSOR); // NT 347436, MDAC 58606 406throw ODB.NoProviderSpecified(); 408if (ODB.MaxProgIdLength <= progid.Length) { // MDAC 63151 409throw ODB.InvalidProviderSpecified(); 414throw ODB.MSDASQLNotSupported();
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (22)
406((ODB.DBPROP_INIT_ASYNCH == info._propertyID) || 407(ODB.DBPROP_INIT_HWND == info._propertyID) || 408(ODB.DBPROP_INIT_PROMPT == info._propertyID))) { 505case ODB.DBPROP_INIT_CATALOG: 506case ODB.DBPROP_INIT_LOCATION: 513case ODB.DBPROP_INIT_TIMEOUT: 514case ODB.DBPROP_INIT_GENERALTIMEOUT: 522case ODB.DBPROP_AUTH_PASSWORD: 532case ODB.DBPROP_AUTH_USERID: 541case ODB.DBPROP_AUTH_CACHE_AUTHINFO: 542case ODB.DBPROP_AUTH_ENCRYPT_PASSWORD: 543case ODB.DBPROP_AUTH_INTEGRATED: 544case ODB.DBPROP_AUTH_MASK_PASSWORD: 545case ODB.DBPROP_AUTH_PERSIST_ENCRYPTED: 551refreshOnChange = (ODB.DBPROP_AUTH_INTEGRATED == info._propertyID); 554case ODB.DBPROP_INIT_BINDFLAGS: 555case ODB.DBPROP_INIT_IMPERSONATION_LEVEL: 556case ODB.DBPROP_INIT_LCID: 557case ODB.DBPROP_INIT_MODE: 558case ODB.DBPROP_INIT_PROTECTION_LEVEL: 559case ODB.DBPROP_INIT_PROVIDERSTRING: 560case ODB.DBPROP_INIT_LOCKOWNER:
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (7)
288if (ODB.ADODB_NextResultError != (int)hr) { 294OleDbHResult hresult = ODB.GetErrorDescription(errorInfo, hr, out message); 325throw ODB.Fill_NotADODB("adodb"); 354throw ODB.Fill_EmptyRecordSet("ADODBRecordSet", e); 402throw ODB.Fill_EmptyRecord("adodb", e); 443if ((0 < (int)hr) && (ODB.ADODB_AlreadyClosedError != (int)hr)) { 448OleDbHResult hresult = ODB.GetErrorDescription(errorInfo, hr, out message);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (66)
466for (int i = 0, offset = 0; i < columnCount; ++i, offset += ODB.SizeOf_tagDBCOLUMNINFO) { 482if (filterITypeInfo && (ODB.DBCOLUMN_TYPEINFO == dbColumnInfo.pwszName)) { // MDAC 65306 509case ODB.DBKIND_GUID_NAME: 510case ODB.DBKIND_GUID_PROPID: 511case ODB.DBKIND_GUID: 515Debug.Assert(ODB.DBKIND_PGUID_NAME != dbColumnInfo.columnid.eKind, "OLE DB providers never return pGuid-style bindings."); 516Debug.Assert(ODB.DBKIND_PGUID_PROPID != dbColumnInfo.columnid.eKind, "OLE DB providers never return pGuid-style bindings."); 521case ODB.DBKIND_GUID_PROPID: 522case ODB.DBKIND_PROPID: 525case ODB.DBKIND_GUID_NAME: 526case ODB.DBKIND_NAME: 574hr = icolumnsRowset.GetColumnsRowset(ADP.PtrZero, cOptColumns, prgOptColumns, ref ODB.IID_IRowset, 0, ADP.PtrZero, out rowset); 873hr = rowsetInfo.GetReferencedRowset((IntPtr)ordinal, ref ODB.IID_IRowset, out result); 1122hr = imultipleResults.GetResult(ADP.PtrZero, ODB.DBRESULTFLAG_DEFAULT, ref ODB.IID_NULL, out affected, out result); 1205hr = imultipleResults.GetResult(ADP.PtrZero, ODB.DBRESULTFLAG_DEFAULT, ref ODB.IID_IRowset, out affected, out result); 1343OleDbHResult hr = dbBindings[i].CreateAccessor(iaccessor, ODB.DBACCESSOR_ROWDATA); 1352object maxRows = GetPropertyValue(ODB.DBPROP_MAXROWS); 1467if (ODB.LargeDataSize < info.size) { 1553throw ODB.ThreadApartmentState(e); 1693if ((ODB.DBKIND_GUID_NAME == info.kind) || (ODB.DBKIND_NAME == info.kind)) { 1794if (ODB.DBPROPVAL_IC_SENSITIVE == _connection.QuotedIdentifierCase()) { 1858int nameColumnIndex = dataColumns.IndexOf(ODB.COLUMN_NAME); 1869info.flags &= ~ODB.DBCOLUMNFLAGS_ISNULLABLE; 1910int indxIndex = dataColumns.IndexOf(ODB.INDEX_NAME); 1911int pkeyIndex = dataColumns.IndexOf(ODB.PRIMARY_KEY); 1912int uniqIndex = dataColumns.IndexOf(ODB.UNIQUE); 1913int nameIndex = dataColumns.IndexOf(ODB.COLUMN_NAME); 1914int nullIndex = dataColumns.IndexOf(ODB.NULLS); 1933bool nullsVal = (null != nulls) && (dataRow.IsNull(nulls, DataRowVersion.Default) || (ODB.DBPROPVAL_IN_ALLOWNULL == Convert.ToInt32(dataRow[nulls, DataRowVersion.Default], CultureInfo.InvariantCulture))); 2017hiddenColumns = GetPropertyValue(ODB.DBPROP_HIDDENCOLUMNS); // MDAC 55611, 72106 2029MetaData columnidname = dataReader.FindMetaData(ODB.DBCOLUMN_IDNAME); 2030MetaData columnguid = dataReader.FindMetaData(ODB.DBCOLUMN_GUID); 2031MetaData columnpropid = dataReader.FindMetaData(ODB.DBCOLUMN_PROPID); 2033MetaData columnname = dataReader.FindMetaData(ODB.DBCOLUMN_NAME); 2034MetaData columnordinal = dataReader.FindMetaData(ODB.DBCOLUMN_NUMBER); 2035MetaData dbtype = dataReader.FindMetaData(ODB.DBCOLUMN_TYPE); 2036MetaData columnsize = dataReader.FindMetaData(ODB.DBCOLUMN_COLUMNSIZE); 2037MetaData numericprecision = dataReader.FindMetaData(ODB.DBCOLUMN_PRECISION); 2038MetaData numericscale = dataReader.FindMetaData(ODB.DBCOLUMN_SCALE); 2039MetaData columnflags = dataReader.FindMetaData(ODB.DBCOLUMN_FLAGS); 2040MetaData baseschemaname = dataReader.FindMetaData(ODB.DBCOLUMN_BASESCHEMANAME); 2041MetaData basecatalogname = dataReader.FindMetaData(ODB.DBCOLUMN_BASECATALOGNAME); 2042MetaData basetablename = dataReader.FindMetaData(ODB.DBCOLUMN_BASETABLENAME); 2043MetaData basecolumnname = dataReader.FindMetaData(ODB.DBCOLUMN_BASECOLUMNNAME); 2044MetaData isautoincrement = dataReader.FindMetaData(ODB.DBCOLUMN_ISAUTOINCREMENT); 2045MetaData isunique = dataReader.FindMetaData(ODB.DBCOLUMN_ISUNIQUE); 2046MetaData iskeycolumn = dataReader.FindMetaData(ODB.DBCOLUMN_KEYCOLUMN); 2061info.kind = ODB.DBKIND_NAME; 2067info.kind = ((ODB.DBKIND_NAME == info.kind) ? ODB.DBKIND_GUID_NAME : ODB.DBKIND_GUID); 2073info.kind = ((ODB.DBKIND_GUID == info.kind) ? ODB.DBKIND_GUID_PROPID : ODB.DBKIND_PROPID); 2182else if (info.guid.Equals(ODB.DBCOL_SPECIALCOL)) { // MDAC 90827 2201if (info.guid.Equals(ODB.DBCOL_SPECIALCOL)) { // MDAC 72390 2255return (0 != (ODB.DBCOLUMNFLAGS_ISBOOKMARK & flags)); 2258return (0 != (ODB.DBCOLUMNFLAGS_ISLONG & flags)); 2261return (0 != (ODB.DBCOLUMNFLAGS_ISFIXEDLENGTH & flags)); 2264return (0 != (ODB.DBCOLUMNFLAGS_ISROWID_DBCOLUMNFLAGS_ISROWVER & flags)); 2267return (0 != (ODB.DBCOLUMNFLAGS_ISNULLABLE & flags)); 2270return (0 != (ODB.DBCOLUMNFLAGS_ISNULLABLE_DBCOLUMNFLAGS_MAYBENULL & flags)); 2273return (0 == (ODB.DBCOLUMNFLAGS_WRITE_DBCOLUMNFLAGS_WRITEUNKNOWN & flags));
fx\src\data\System\Data\OleDb\OleDbEnumerator.cs (3)
52throw ODB.ISourcesRowsetNotSupported(); 55throw ODB.ISourcesRowsetNotSupported(); 63OleDbHResult hr = srcrowset.GetSourcesRowset(ADP.PtrZero, ODB.IID_IRowset, propCount, propSets, out value);
fx\src\data\System\Data\OleDb\OleDbError.cs (3)
54this.message = ODB.FailedGetDescription(hr); 79this.source = ODB.FailedGetSource(hr); 89hr = errorRecords.GetCustomErrorObject(index, ref ODB.IID_ISQLErrorInfo, out sqlErrorInfo);
fx\src\data\System\Data\OleDb\OleDbException.cs (4)
99builder.Append(message.TrimEnd(ODB.ErrorTrimCharacters)); // MDAC 73707 108builder.Append(errors[i].Message.TrimEnd(ODB.ErrorTrimCharacters)); // MDAC 73707 113message = ODB.NoErrorMessage(errorCode); // MDAC 71170 147return ODB.ELookup((OleDbHResult) value);
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (21)
202string catalogSeparatorPattern = internalConnection.GetLiteralInfo(ODB.DBLITERAL_CATALOG_SEPARATOR); 203string schemaSeparatorPattern = internalConnection.GetLiteralInfo(ODB.DBLITERAL_SCHEMA_SEPARATOR); 226property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,ODB.DBPROP_DBMSNAME); 242property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,ODB.DBPROP_GROUPBY); 247case ODB.DBPROPVAL_GB_CONTAINS_SELECT: 251case ODB.DBPROPVAL_GB_EQUALS_SELECT: 255case ODB.DBPROPVAL_GB_NO_RELATION: 259case ODB.DBPROPVAL_GB_NOT_SUPPORTED: 266SetIdentifierCase(DbMetaDataColumnNames.IdentifierCase,ODB.DBPROP_IDENTIFIERCASE,dataSourceInformation, connection); 267SetIdentifierCase(DbMetaDataColumnNames.QuotedIdentifierCase,ODB.DBPROP_QUOTEDIDENTIFIERCASE,dataSourceInformation, connection); 269property = connection.GetDataSourcePropertyValue(OleDbPropertySetGuid.DataSourceInfo,ODB.DBPROP_ORDERBYCOLUNSINSELECT); 276DataRow[] tableNameRow = infoLiterals.Select("Literal = " + ODB.DBLITERAL_TABLE_NAME.ToString(CultureInfo.InvariantCulture)); 420case ODB.DB_UNSEARCHABLE: 425case ODB.DB_LIKE_ONLY: 430case ODB.DB_ALL_EXCEPT_LIKE: 435case ODB.DB_SEARCHABLE: 471throw ODB.IDBInfoNotSupported(); 622case ODB.DBPROPVAL_IC_UPPER: 623case ODB.DBPROPVAL_IC_LOWER: 624case ODB.DBPROPVAL_IC_MIXED: 628case ODB.DBPROPVAL_IC_SENSITIVE:
fx\src\data\System\Data\OleDb\OleDbParameter.cs (4)
265throw ODB.UninitializedParameters(index, dbtype.enumOleDbType); 344if (ODB.LargeDataSize < bytecount) { 516return (ODB.ParameterDirectionFlag & (int)direction); 530return (ODB.ParameterDirectionFlag & (int)direction);
fx\src\data\System\Data\OleDb\OleDbStruct.cs (2)
298dwOptions = ((required) ? ODB.DBPROPOPTIONS_REQUIRED : ODB.DBPROPOPTIONS_OPTIONAL);
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (9)
60hr = GetDataSource(base.handle, IntPtr.Zero, ODB.CLSCTX_ALL, connectionString, ref ODB.IID_IDBInitialize, ref datasrcWrapper); 69throw ODB.ProviderUnavailable(constr.Provider, null); 77throw ODB.ProviderUnavailable(constr.Provider, null); 140hr = (OleDbHResult)QueryInterface(base.handle, ref ODB.IID_IDBCreateSession, ref idbCreateSession); 161hr = CreateSession(idbCreateSession, IntPtr.Zero, ref ODB.IID_IDBCreateCommand, ref sessionWrapper); 169hr = CreateSession(idbCreateSession, IntPtr.Zero, ref ODB.IID_IUnknown, ref sessionWrapper); 246int hresult = QueryInterface(base.handle, ref ODB.IID_IDBCreateCommand, ref idbCreateCommand); // 307hr = CreateCommand(base.handle, IntPtr.Zero, ref ODB.IID_ICommandText, ref icommandText);
fx\src\data\System\Data\OleDb\PropertyIDSet.cs (4)
23static private readonly int PropertyIDSetAndValueSize = ODB.SizeOf_tagDBPROPIDSET + ADP.PtrSize; // sizeof(tagDBPROPIDSET) + sizeof(int) 24static private readonly int PropertyIDSetSize = ODB.SizeOf_tagDBPROPIDSET; 40ptr = ADP.IntPtrOffset(base.handle, ODB.OffsetOf_tagDBPROPIDSET_PropertySet); 51IntPtr ptr = ADP.IntPtrOffset(base.handle, (i * PropertyIDSetSize) + ODB.OffsetOf_tagDBPROPIDSET_PropertySet);
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (5)
77for (int i = 0; i < setCount; ++i, setPtr = ADP.IntPtrOffset(setPtr, ODB.SizeOf_tagDBPROPINFOSET)) { 82for(int k = 0; k < infoCount; ++k, infoPtr = ADP.IntPtrOffset(infoPtr, ODB.SizeOf_tagDBPROPINFO)) { 118int offset = (i * ODB.SizeOf_tagDBPROPINFOSET); 124IntPtr valuePtr = ADP.IntPtrOffset(infoPtr, (k * ODB.SizeOf_tagDBPROPINFO) + ODB.OffsetOf_tagDBPROPINFO_Value);
fx\src\data\System\Data\OleDb\RowBinding.cs (24)
44int headerLength = RowBinding.AlignDataSize(bindingCount * ODB.SizeOf_tagDBBINDING); 110if (ODB.DBACCESSOR_PARAMETERDATA == flags) { 111throw ODB.BadStatus_ParamAcc(bindings[k].ColumnBindingOrdinal, (DBBindStatus)rowBindStatus[k]); 113else if (ODB.DBACCESSOR_ROWDATA == flags) { 114throw ODB.BadStatusRowAccessor(bindings[k].ColumnBindingOrdinal, (DBBindStatus)rowBindStatus[k]); 136IntPtr ptr = ADP.IntPtrOffset(buffer, (i * ODB.SizeOf_tagDBBINDING)); 165Debug.Assert(0 == (ODB.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier"); 167ValidateCheck(offset, 2*ODB.SizeOf_Variant); 191Debug.Assert(0 == (ODB.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier"); 193ValidateCheck(offset, 2*ODB.SizeOf_Variant); 210NativeOledbWrapper.MemoryCopy(ADP.IntPtrOffset(buffer,ODB.SizeOf_Variant), buffer, ODB.SizeOf_Variant); 284_accessorHandle = ODB.DB_INVALID_HACCESSOR; 294_accessorHandle = ODB.DB_INVALID_HACCESSOR; 296if ((ODB.DB_INVALID_HACCESSOR != accessorHandle) && (null != iaccessor)) { 356IntPtr ptr = ADP.IntPtrOffset(buffer, (i * ODB.SizeOf_tagDBBINDING)); 358int valueOffset = _headerLength + Marshal.ReadIntPtr(ptr, ODB.OffsetOf_tagDBBINDING_obValue).ToInt32(); 359short wtype = Marshal.ReadInt16(ptr, ODB.OffsetOf_tagDBBINDING_wType); 372ValidateCheck(valueOffset, 2*ODB.SizeOf_Variant); 431if (ODB.DB_NULL_HCHAPTER != chapter) { 490Debug.Assert(0 == (ODB.SizeOf_Variant % 8), "unexpected VARIANT size mutiplier"); 494IntPtr originalHandle = ADP.IntPtrOffset(buffer, valueOffset+ODB.SizeOf_Variant); 495bool different = NativeOledbWrapper.MemoryCompare(currentHandle, originalHandle, ODB.SizeOf_Variant); 507SafeNativeMethods.ZeroMemory(originalHandle, (IntPtr)ODB.SizeOf_Variant);
fx\src\data\System\Data\OleDb\SafeHandles.cs (1)
96Debug.Assert(ODB.DB_NULL_HROW != value, "bad rowHandle");