SQL_Connect Function

Creates an SQL connection from a named configuration.

Database SQL_Connect(const char[] confname, bool persistent, char[] error, int maxlength)

Parameters

const char[] confname

Named configuration.

bool persistent

True to re-use a previous persistent connection if possible, false otherwise.

char[] error

Error buffer.

int maxlength

Maximum length of the error buffer.

Return Value

A database connection Handle, or INVALID_HANDLE on failure.