Well, the general rule is, if any appreciable amount of transaction log is
being used, it's NOT a bulk copy.
Things to check:
- is the table you are copying into a heap?
- if it's not a heap, is it empty and no more than 18 pages in size?
- have you verified that there are no secondary indexes (including indexes
created by constraints)?
- is journaling off (you've already checked this)
- in r3, the table must not be partitioned.
(We'll implement bulk-load of partitioned tables at some point, but other
things have taken priority.)
If you can't figure it out, and if nobody else is using the database, and
if you're willing to trash the table if something goes wrong, then you can
turn on "set nologging" and do the copy. Keep in mind that if anything -
Anything - goes wrong during a nologging update, the database is marked
inconsistent. Don't use nologging unless you know what your recovery plan
is going to be.
Archived post - originally posted at 2005-01-28 14:37:18
|