SQL_Connect

Last Updated2014-12-15
Created At2007-06-01

Creates an SQL connection from a named configuration.

native 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

Database A database connection Handle, or INVALID_HANDLE on failure.