Дмитрий Ц.
Дата: 15.12.2002 12:41:22
Help!
Глюки с BulkInsert !
Кто-нибудь знает, какие права нужны для выполнения команды BulkInsert. Я знаю, что необходимо быть членом роли Bulk Insert Administrators. Кроме того дал полные права на таблицу. Так вот, закачка текстового файла не шла и выдавалось сообщение:
“Server: Msg 8104, Level 16, State 2, Line 1
The current user is not the database or object owner of table 'c3336'. Cannot perform SET operation.”
Пока я не включил юзера в роль db_ddladmin закачка не шла.
Как-нибудь можно закачать файл, не обладая админскими правами.
Дед Маздай
Дата: 15.12.2002 13:13:54
Все правильно. Это баг. Он описан в Q302621:
If a BULK INSERT command is issued by a user who
- Is part of the bulkadmin server role and has INSERT permissions to the table
- Is not part of the sysadmin, db_ddladmin, or db_owner role
- Is not the database owner
The following error message is generated:
The current user is not the database or object owner of table ''. Cannot perform SET operation.
Microsoft has confirmed this to be a problem in SQL Server 2000. To work around the problem, make sure that the user is also part of either the db_ddladmin or the db_owner database role in addition to the bulkadmin server role.