sqlfreehandle (odbc32)
Last changed: -143.238.2.151

.
Summary
SQLFreeHandle frees resources associated with a specific environment, connection, statement, or descriptor handle.

C# Signature:

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

VB Signature:

Declare Function SQLFreeHandle Lib "odbc32.dll" (ByVal HandleType As Short, ByVal InputHandle As IntPtr) As Short

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Frees a handle allocated by SQLAllocHandle.

HandleType can be one of four values defined as:

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!

Documentation