Determine if the LOGINREC has been set for bulk copy operations.
DBBOOL bcp_getl(loginrec) LOGINREC *loginrec;
A pointer to a LOGINREC structure that will be passed as an argument to dbopen. You can get a LOGINREC structure by calling dblogin.
“TRUE” or “FALSE.”
bcp_getl returns “TRUE” if *loginrec is enabled for bulk copy operations, and “FALSE” if it is not.
A DBPROCESS connection cannot be used for bulk copy in operations unless the LOGINREC used to open the connection has been set to allow bulk copy. The macro BCP_SETL sets a LOGINREC to allow bulk copy. By default, DBPROCESSes are not enabled for bulk copy operations.
Applications that allow users to make ad hoc queries may want to avoid calling BCP_SETL (or call it with a value of “false” for the enable parameter) to prevent users from initiating a bulk copy sequence through SQL commands. Once a bulk copy sequence has begun, it cannot be stopped by an ordinary SQL command.
If LOGINREC is NULL, bcp_getl returns “FALSE.”