Whether to use fast, fast-logged, or slow bcp depends on your situation.
The existence of indexes on tables can affect transfer speed, depending on certain attributes. Unless you explicitly specify fast-logged bcp on tables with indexes, bcp automatically uses slow mode, which logs data inserts in the transaction log. These logged inserts can cause the transaction log to become very large.
To control this data excess and ensure that the database is fully recoverable in the event of a failure, back up the log with dump transaction.
By default, the select into/bulkcopy/pllsort option is false (disabled) in newly created databases. When this option is disabled, bcp automatically uses slow mode. Fast and fast-logged bcp both require that select into/bulkcopy/pllsort option is set to true. To change the default setting for future databases, turn this option on in the model database.
Lock Scheme | Index Type | select into | Recovery |
---|---|---|---|
APL | Non-unique nonclustered | On | No |
DOL | Non-unique nonclustered | On | No |
DOL | Non-unique clustered | On | No |
Lock Scheme | Index Type | select into | Recovery |
---|---|---|---|
APL | Non-unique nonclustered | On | Yes |
DOL | Non-unique nonclustered | On | Yes |
DOL | Non-unique clustered | On | Yes |
Lock Scheme | Index Type | select into/bulkcopy | Recovery |
---|---|---|---|
APL | Unique | On/off | Yes |
DOL | Unique | On/off | Yes |
APL | Non-unique | Off | Yes |
DOL | Non-unique | Off | Yes |
While the select into/bulkcopy/pllsort option is on, you cannot dump the transaction log. Issuing dump transaction produces an error message instructing you to use dump database instead.
SAP ASE prohibits dump transaction after running fast bcp. Instead, use dump database. Because slow bcp is a minimally logged operation, the SAP ASE server allows you to issue dump transaction after running slow bcp whether select into/bulkcopy/pllsort is set to true or false in the database.