49 references to SQL_ATTR
System.Data.Odbc (49)
src\libraries\Common\src\Interop\Interop.Odbc.cs (6)
171/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 240/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 305/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 312/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 319/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 347/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute,
System\Data\Odbc\OdbcCommand.cs (8)
387internal OdbcDescriptorHandle GetDescriptorHandle(ODBC32.SQL_ATTR attribute) 624ODBC32.SQL_ATTR.QUERY_TIMEOUT, 645TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.NOBROWSETABLE, (IntPtr)ODBC32.SQL_NB.ON); 646TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.HIDDEN_COLUMNS, (IntPtr)ODBC32.SQL_HC.ON); 655TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.NOBROWSETABLE, (IntPtr)ODBC32.SQL_NB.OFF); 656TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.HIDDEN_COLUMNS, (IntPtr)ODBC32.SQL_HC.OFF); 911private void TrySetStatementAttribute(OdbcStatementHandle stmt, ODBC32.SQL_ATTR stmtAttribute, IntPtr value) 1142internal OdbcDescriptorHandle GetDescriptorHandle(ODBC32.SQL_ATTR attribute)
System\Data\Odbc\OdbcConnection.cs (12)
95return GetConnectAttrString(ODBC32.SQL_ATTR.CURRENT_CATALOG); 332int isDead = GetConnectAttr(ODBC32.SQL_ATTR.CONNECTION_DEAD, ODBC32.HANDLER.IGNORE); 381internal string GetConnectAttrString(ODBC32.SQL_ATTR attribute) 414internal int GetConnectAttr(ODBC32.SQL_ATTR attribute, ODBC32.HANDLER handler) 713internal void FlagUnsupportedConnectAttr(ODBC32.SQL_ATTR Attribute) 717case ODBC32.SQL_ATTR.CURRENT_CATALOG: 720case ODBC32.SQL_ATTR.CONNECTION_DEAD: 729internal void FlagUnsupportedStmtAttr(ODBC32.SQL_ATTR Attribute) 733case ODBC32.SQL_ATTR.QUERY_TIMEOUT: 736case (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.NOBROWSETABLE: 739case (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.HIDDEN_COLUMNS: 952ODBC32.SQLRETURN retcode = connectionHandle.SetConnectionAttribute3(ODBC32.SQL_ATTR.CURRENT_CATALOG, value, checked((int)value.Length * 2));
System\Data\Odbc\OdbcConnectionHandle.cs (12)
42SetConnectionAttribute2(ODBC32.SQL_ATTR.LOGIN_TIMEOUT, (IntPtr)connectionTimeout, (int)ODBC32.SQL_IS.UINTEGER); 64retcode = Interop.Odbc.SQLSetConnectAttrW(this, ODBC32.SQL_ATTR.AUTOCOMMIT, ODBC32.SQL_AUTOCOMMIT_OFF, (int)ODBC32.SQL_IS.UINTEGER); 80ODBC32.SQL_ATTR isolationAttribute; 88isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 92isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 96isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 100isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 105isolationAttribute = ODBC32.SQL_ATTR.SQL_COPT_SS_TXN_ISOLATION; 178retcode = Interop.Odbc.SQLSetConnectAttrW(handle, ODBC32.SQL_ATTR.AUTOCOMMIT, ODBC32.SQL_AUTOCOMMIT_ON, (int)ODBC32.SQL_IS.UINTEGER); 225internal ODBC32.SQLRETURN GetConnectionAttribute(ODBC32.SQL_ATTR attribute, byte[] buffer, out int cbActual) 250internal ODBC32.SQLRETURN SetConnectionAttribute2(ODBC32.SQL_ATTR attribute, IntPtr value, int length) 257internal ODBC32.SQLRETURN SetConnectionAttribute3(ODBC32.SQL_ATTR attribute, string buffer, int length)
System\Data\Odbc\OdbcDataReader.cs (1)
1653using (OdbcDescriptorHandle hdesc = new OdbcDescriptorHandle(StatementHandle, ODBC32.SQL_ATTR.APP_PARAM_DESC))
System\Data\Odbc\OdbcEnvironmentHandle.cs (2)
19ODBC32.SQL_ATTR.ODBC_VERSION, 31ODBC32.SQL_ATTR.CONNECTION_POOLING,
System\Data\Odbc\OdbcHandle.cs (4)
78internal OdbcHandle(OdbcStatementHandle parentHandle, ODBC32.SQL_ATTR attribute) : base(IntPtr.Zero, true) 80Debug.Assert((ODBC32.SQL_ATTR.APP_PARAM_DESC == attribute) || (ODBC32.SQL_ATTR.APP_ROW_DESC == attribute), "invalid attribute"); 224internal OdbcDescriptorHandle(OdbcStatementHandle statementHandle, ODBC32.SQL_ATTR attribute) : base(statementHandle, attribute)
System\Data\Odbc\OdbcParameter.cs (1)
896OdbcDescriptorHandle hdesc = command.GetDescriptorHandle(ODBC32.SQL_ATTR.APP_PARAM_DESC);
System\Data\Odbc\OdbcStatementHandle.cs (2)
174internal ODBC32.SQLRETURN GetStatementAttribute(ODBC32.SQL_ATTR attribute, out IntPtr value, out int stringLength) 264internal ODBC32.SQLRETURN SetStatementAttribute(ODBC32.SQL_ATTR attribute, IntPtr value, ODBC32.SQL_IS stringLength)
System\Data\Odbc\OdbcTransaction.cs (1)
53int sql_iso = connection.GetConnectAttr(ODBC32.SQL_ATTR.TXN_ISOLATION, ODBC32.HANDLER.THROW);