Establishes a connection to a database system and returns a handle to that system. This allows you to submit SQL statements to the database for execution.
DBAPI.bdh
DB_Connect(in sConnectStr: string): number;
Handle to a database connection
|
You can issue successive calls to DB_Connect to open simultaneous connections to different database systems, or simultaneous connections to the same database system (if supported by that database system). Use DB_Disconnect to close the connection and release the resources.
// To connect to SQL Server: hDBC := DB_Connect("dsn=qa_sql_server;uid=u1;pwd=u1");
DBApi01.bdf, Trans.bdf, MutexLogin.bdf