Compartilhar via


Conexão (ADO para sintaxe do Visual C++)

Aplica-se ao: Access 2013 | Access 2016

Métodos

BeginTrans(long * TransactionLevel )

CommitTrans(void)

RollbackTrans(void)

Cancelar(void)

Fechar(void)

Execute(BSTR CommandText, VARIANT * RecordsAffected, long Options, _ADORecordset ** ppiRset )

Open(BSTR ConnectionString, BSTR UserID,BSTR Password, long Options )

OpenSchema(SchemaEnum Schema,Variant Restrictions, VARIANT SchemaID, _ADORecordset ** pprset )

Propriedades

get_Attributes(long * plAttr ) put_Attributes ( lAttr longo )

get_CommandTimeout(LONG * plTimeout ) put_CommandTimeout (LONG lTimeout )

get_ConnectionString put_ConnectionString (BSTR * pbstr ) ( BSTR bstr )

get_ConnectionTimeout(LONG * plTimeout ) put_ConnectionTimeout (LONG lTimeout )

get_CursorLocation(CursorLocationEnum * plCursorLoc ) put_CursorLocation (CursorLocationEnum lCursorLoc )

get_DefaultDatabase(BSTR * pbstr ) put_DefaultDatabase (BSTR bstr )

get_IsolationLevel put_IsolationLevel (IsolationLevelEnum * Level ) ( IsolationLevelEnum Level )

get_Mode put_Mode (ConnectModeEnum * plMode ) ( ConnectModeEnum lMode )

get_Provider put_Provider (bstr * pbstr ) (provedor BSTR )

get_State(LONG * plObjState )

get_Version(BSTR * pbstr )

get_Errors(ADOErrors ** ppvObject )

Eventos

BeginTransComplete(LONG TransactionLevel, ADOError * pError, EventStatusEnum * adStatus, _ADOConnection * pConnection )

CommitTransComplete(ADOError * pError, EventStatusEnum * adStatus, _ADOConnection * pConnection )

ConnectComplete(ADOError * pError, EventStatusEnum * adStatus, _ADOConnection * pConnection )

Disconnect(EventStatusEnum * adStatus, _ADOConnection * pConnection )

ExecuteComplete(LONG RecordsAffected, ADOError * pError, EventStatusEnum * adStatus, _ADOCommand * pCommand, _ADORecordset * pRecordset, _ADOConnection * pConnection )

InfoMessage(ADOError * pError, EventStatusEnum * adStatus, _ADOConnection * pConnection )

RollbackTransComplete(ADOError * pError, EventStatusEnum * adStatus, _ADOConnection * pConnection )

WillConnect(BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, EventStatusEnum * adStatus, _ADOConnection * pConnection )

WillExecute(BSTR * Source, CursorTypeEnum * CursorType, LockTypeEnum * LockType, long * Options, EventStatusEnum * adStatus, _ADOCommand * pCommand, _ADORecordset * pRecordset, _ADOConnection * pConnection )

Confira também

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.