SQLAllocHandle (odbc32)
Last changed: dado-89.216.176.216

.
Summary
SQLAllocHandle allocates an environment, connection, statement, or descriptor handle.

C# Signature:

[DllImport("odbc32.dll",CharSet=CharSet.Unicode)]
extern static short SQLAllocHandle(ushort HandleType, int InputHandle, out IntPtr OutputHandle);

VB Signature:

Private Declare Auto Function SQLAllocHandle Lib "odbc32.dll" (ByVal HandleType As Short, ByVal InputHandle As IntPtr, ByRef OutputHandle As IntPtr) As Short

User-Defined Types:

None.

Notes:

HandleType can be one of four values:

public const ushort SQL_HANDLE_ENV = 1;
public const ushort SQL_HANDLE_DBC = 2;
public const ushort SQL_HANDLE_STMT = 3;
public const ushort SQL_HANDLE_DESC = 4;

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation