SQL_DefConnect Function

Creates a default SQL connection.

Database SQL_DefConnect(char[] error, int maxlength, bool persistent)

Parameters

char[] error

Error buffer.

int maxlength

Maximum length of the error buffer.

bool persistent

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

Return Value

A database connection Handle, or INVALID_HANDLE on failure. On failure the error buffer will be filled with a message.