Subject | Re: [Firebird-Architect] Bulk loader. |
---|---|
Author | Vlad Khorsun |
Post date | 2007-11-04T08:42:35Z |
>>> What happens when bulk insert brings database into inconsistent state?Another one of course
>>> What means does admin have to repair the database (restore consistency)?
>>
>> Of course - admin\dbo\someone else must check constraints after such
>> process if its needed.
>
> within the context of the transaction in which load was performed or
> another one?
> Issue I'm thinking about is that when we commit transactionYes, this is specific of our backup\restore process. Note, i don't offer to not check
> database becomes unrestorable (i.e. one has to restore it without
> constraints first, then repair the DB, then backup it and restore it
> again)...
constraints. I just said it may improve performance if would be done at the second phase
of bulk load process (which i believe is one statement). I.e. after data load but before the
return from statement. Therefore possible temporary constraint violation is invisible for user.
And of course user triggers can be bypassed without any harm for physical database
consistency.
>>>> PermissionsYou right here. If we need such level of flexibility ;)
>>>> Only members of the sysadmin and bulkadmin fixed server roles can execute BULK INSERT.
>>> Hmmm... personally I would go with GRANT BULK INSERT ON <...> TO <...> .
>>
>> This is the same as including user into bulkadmin server role (in MSSQL of course)
>
> Conceptually yes, but gives a flexibilty to give bulk insert on table a
> to user john and on table b to user mary.
Regards,
Vlad