Sets the LOGINREC to enable bulk-copy operations.
RETCODE BCP_SETL (
PLOGINREC loginrec,
BOOL enable );
SUCCEED or FAIL.
This function sets a field in the LOGINREC structure that tells Microsoft® SQL Server™ that the DBPROCESS connection can be used for bulk-copy operations. For it to have any effect, it must be called before dbopen, the function that actually allocates the DBPROCESS structure.
In applications that allow users to make ad hoc queries, you may want to avoid calling this function to keep users from initiating a bulk-copy sequence with Transact-SQL statements. Or you may want to call it with the enable parameter set to FALSE. After a bulk-copy sequence has begun, it cannot be stopped with a Transact-SQL statement.
bcp_init | dbsetlhost |
dblogin | dbsetlpwd |
dbopen | dbsetluser |
dbsetlapp |