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