The SQL_Connect() function creates a new pass-through SQL connection using the current SQL login.
SQL_Connect(SQL_connection)
• SQL_connection – A returned long integer containing the ID of the new pass-through SQL connection.
A long integer indicating the status of the pass-through SQL connection. The value 0 is returned if the connection was successfully created. Any other value indicates an error occurred.
The pass-through SQL connection is active until you use the SQL_Terminate() function to terminate it.