53 references to SQL_ATTR
System.Data (53)
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (7)
196/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 274/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 352/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 360/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 368/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 377/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute, 404/*SQLINTEGER*/ODBC32.SQL_ATTR Attribute,
fx\src\data\System\Data\Odbc\OdbcCommand.cs (8)
362internal OdbcDescriptorHandle GetDescriptorHandle(ODBC32.SQL_ATTR attribute) { 571ODBC32.SQL_ATTR.QUERY_TIMEOUT, 587TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.NOBROWSETABLE, (IntPtr)ODBC32.SQL_NB.ON); 588TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.HIDDEN_COLUMNS, (IntPtr)ODBC32.SQL_HC.ON); 595TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.NOBROWSETABLE, (IntPtr)ODBC32.SQL_NB.OFF); 596TrySetStatementAttribute(stmt, (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.HIDDEN_COLUMNS, (IntPtr)ODBC32.SQL_HC.OFF); 829void TrySetStatementAttribute (OdbcStatementHandle stmt, ODBC32.SQL_ATTR stmtAttribute, IntPtr value) { 1025internal OdbcDescriptorHandle GetDescriptorHandle(ODBC32.SQL_ATTR attribute) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (14)
105return GetConnectAttrString(ODBC32.SQL_ATTR.CURRENT_CATALOG); 300int isDead = GetConnectAttr(ODBC32.SQL_ATTR.CONNECTION_DEAD, ODBC32.HANDLER.IGNORE); 349internal string GetConnectAttrString(ODBC32.SQL_ATTR attribute) { 376internal int GetConnectAttr(ODBC32.SQL_ATTR attribute, ODBC32.HANDLER handler) { 621internal void FlagUnsupportedConnectAttr (ODBC32.SQL_ATTR Attribute) { 623case ODBC32.SQL_ATTR.CURRENT_CATALOG: 626case ODBC32.SQL_ATTR.CONNECTION_DEAD: 635internal void FlagUnsupportedStmtAttr (ODBC32.SQL_ATTR Attribute) { 637case ODBC32.SQL_ATTR.QUERY_TIMEOUT: 640case (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.NOBROWSETABLE: 643case (ODBC32.SQL_ATTR)ODBC32.SQL_SOPT_SS.HIDDEN_COLUMNS: 842ODBC32.RetCode retcode = connectionHandle.SetConnectionAttribute3(ODBC32.SQL_ATTR.CURRENT_CATALOG, value, checked((Int32)value.Length*2)); 861retcode = connectionHandle.SetConnectionAttribute2(ODBC32.SQL_ATTR.SQL_COPT_SS_ENLIST_IN_DTC, (IntPtr) ODBC32.SQL_DTC_DONE, ODBC32.SQL_IS_PTR); 864retcode = connectionHandle.SetConnectionAttribute4(ODBC32.SQL_ATTR.SQL_COPT_SS_ENLIST_IN_DTC, oleTxTransaction, ODBC32.SQL_IS_PTR);
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (13)
52retcode = SetConnectionAttribute2(ODBC32.SQL_ATTR.LOGIN_TIMEOUT, (IntPtr)connectionTimeout, (Int32)ODBC32.SQL_IS.UINTEGER); 73retcode = UnsafeNativeMethods.SQLSetConnectAttrW(this, ODBC32.SQL_ATTR.AUTOCOMMIT, ODBC32.SQL_AUTOCOMMIT_OFF, (Int32)ODBC32.SQL_IS.UINTEGER); 87ODBC32.SQL_ATTR isolationAttribute; 93isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 97isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 101isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 105isolationAttribute = ODBC32.SQL_ATTR.TXN_ISOLATION; 110isolationAttribute = ODBC32.SQL_ATTR.SQL_COPT_SS_TXN_ISOLATION; 175retcode = UnsafeNativeMethods.SQLSetConnectAttrW(handle, ODBC32.SQL_ATTR.AUTOCOMMIT, ODBC32.SQL_AUTOCOMMIT_ON, (Int32)ODBC32.SQL_IS.UINTEGER); 223internal ODBC32.RetCode GetConnectionAttribute(ODBC32.SQL_ATTR attribute, byte[] buffer, out int cbActual) { 247internal ODBC32.RetCode SetConnectionAttribute2(ODBC32.SQL_ATTR attribute, IntPtr value, Int32 length) { 253internal ODBC32.RetCode SetConnectionAttribute3(ODBC32.SQL_ATTR attribute, string buffer, Int32 length) { 259internal ODBC32.RetCode SetConnectionAttribute4(ODBC32.SQL_ATTR attribute, System.Transactions.IDtcTransaction transaction, Int32 length) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (1)
1448using(OdbcDescriptorHandle hdesc = new OdbcDescriptorHandle(StatementHandle, ODBC32.SQL_ATTR.APP_PARAM_DESC)) {
fx\src\data\System\Data\Odbc\OdbcEnvironmentHandle.cs (2)
37ODBC32.SQL_ATTR.ODBC_VERSION, 49ODBC32.SQL_ATTR.CONNECTION_POOLING,
fx\src\data\System\Data\Odbc\OdbcHandle.cs (4)
87internal OdbcHandle(OdbcStatementHandle parentHandle, ODBC32.SQL_ATTR attribute) : base(IntPtr.Zero, true) { 88Debug.Assert((ODBC32.SQL_ATTR.APP_PARAM_DESC == attribute) || (ODBC32.SQL_ATTR.APP_ROW_DESC == attribute), "invalid attribute"); 212internal OdbcDescriptorHandle(OdbcStatementHandle statementHandle, ODBC32.SQL_ATTR attribute) : base(statementHandle, attribute) {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (1)
784OdbcDescriptorHandle hdesc = command.GetDescriptorHandle(ODBC32.SQL_ATTR.APP_PARAM_DESC);
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (2)
176internal ODBC32.RetCode GetStatementAttribute(ODBC32.SQL_ATTR attribute, out IntPtr value, out int stringLength) { 257internal ODBC32.RetCode SetStatementAttribute(ODBC32.SQL_ATTR attribute, IntPtr value, ODBC32.SQL_IS stringLength) {
fx\src\data\System\Data\Odbc\OdbcTransaction.cs (1)
53int sql_iso= connection .GetConnectAttr(ODBC32.SQL_ATTR.TXN_ISOLATION, ODBC32.HANDLER.THROW);