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