OdbcConnection Class

Definition

The OdbcConnection class establishes a database connection by using ODBC (Open Database Connectivity).

public ref class OdbcConnection : Dynamics::AX::Application::Connection
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class OdbcConnection : Dynamics.AX.Application.Connection
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type OdbcConnection = class
    inherit Connection
Public Class OdbcConnection
Inherits Connection
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
OdbcConnection
Attributes

Remarks

In the context of an OdbcConnection instance, SQL statements are run, and results are returned. If a connection to the ODBC data source cannot be established, an exception is thrown, and the reason is posted in the Infolog. This class works only if the correct ODBC drivers have been installed and configured in ODBC Manager in Control Panel.

Constructors

OdbcConnection()
OdbcConnection(IntPtr)
OdbcConnection(LoginProperty)

Fields

kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
createStatement()

Creates a Statement object that is used to execute an SQL statement.

(Inherited from Connection)
createStatement(ResultSetType) (Inherited from Connection)
createStatement(ResultSetType, ResultSetConcurrency) (Inherited from Connection)
equal(XppObjectBase) (Inherited from XppObjectBase)
finalize() (Inherited from Connection)
GetIntPtr()
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
isInTransactionScope() (Inherited from Connection)
IsManagedValid()
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod()

Initializes a new instance of the Connection class.

(Inherited from Connection)
newmethod(LoginProperty)

Establishes a connection to a data source, based on logon properties such as the user name and password.

notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
odbcGetInfoInt(Int32)

Provides an interface to the SQLGetInfo Open Database Connectivity (ODBC) function to retrieve information about the ODBC driver and data source that are associated with a connection.

(Inherited from Connection)
odbcGetInfoLong(Int32)

Provides an interface to the SQLGetInfo ODBC function to retrieve information about the ODBC driver and data source that are associated with a connection.

(Inherited from Connection)
odbcGetInfoStr(Int32)

Provides an interface to the SQLGetInfo ODBC function to retrieve information, in string format, about the ODBC driver and data source that are associated with a connection.

(Inherited from Connection)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
ToString()

Converts the Connection object to a string.

(Inherited from Connection)
transactionScopeAbort() (Inherited from Connection)
transactionScopeBegin() (Inherited from Connection)
transactionScopeCommit() (Inherited from Connection)
ttsabort()

Discards changes that are associated with a transaction and rolls the database back to the original state.

(Inherited from Connection)
ttsbegin()

Begins a transaction.

(Inherited from Connection)
ttscommit()

Commits the changes that are associated with a transaction to the database.

(Inherited from Connection)
ttsLevel()

Returns the number for the last call to the ttsbegin method that is used to begin a transaction.

(Inherited from Connection)
ttsNotifyAbort()

Is called when an exception is thrown.

(Inherited from Connection)
ttsNotifyBegin() (Inherited from Connection)
ttsNotifyCommit()

Is called when the ttscommit method is called.

(Inherited from Connection)
usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to