powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Applications can perform bulk update, delete, fetch, or insertion operations on
4 сообщений из 4, страница 1 из 1
Applications can perform bulk update, delete, fetch, or insertion operations on
    #32035368
Фотография Алексей
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Applications can perform bulk update, delete, fetch, or insertion operations on the underlying table at the data source with a call to SQLBulkOperations. Calling SQLBulkOperations is a convenient alternative to constructing and executing an SQL statement. It lets an ODBC driver support positioned updates even when the data source does not support positioned SQL statements. It is part of the paradigm of achieving complete database access by means of function calls.

SQLBulkOperations operates on the current rowset and can be used only after a call to SQLFetch or SQLFetchScroll. The application specifies the rows to update, delete, or refresh by caching their bookmarks. The driver retrieves the new data for rows to be updated, or the new data to be inserted into the underlying table, from the rowset buffers.

The rowset size to be used by SQLBulkOperations is set by a call to SQLSetStmtAttr with an Attribute argument of SQL_ATTR_ROW_ARRAY_SIZE. Unlike SQLSetPos, which uses a new rowset size only after a call to SQLFetch or SQLFetchScroll, SQLBulkOperations uses the new rowset size after the call to SQLSetStmtAttr.

Because most interaction with relational databases is done through SQL, SQLBulkOperations is not widely supported. However, a driver can easily emulate it by constructing and executing an UPDATE, DELETE, or INSERT statement.

To determine what operations SQLBulkOperation supports, an application calls SQLGetInfo with the SQL_DYNAMIC_CURSOR_ATTRIBUTES1, SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1, SQL_KEYSET_CURSOR_ATTRIBUTES1, or SQL_STATIC_CURSOR_ATTRIBUTES1 information option (depending on the type of the cursor).

Ну что вставлять данные используя bcp_init, bcp_sendrow это понятно, а вот что они хотели сказать про bulk update?
Что действительно можно обновлять без записи в лог?
Кто нибудь делал это? И если это работает то возникает вопрос КАК БЫСТРО? Мне просто приходилось обновлять поле большой таблицы и хотелось бы сделать это побыстрее.
...
Рейтинг: 0 / 0
Applications can perform bulk update, delete, fetch, or insertion operations on
    #32035369
Tulkin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Note : The ODBC SQLBulkOperations function has no relationship to the SQL Server bulk copy functions. Applications must use the SQL Server-specific bulk-copy functions to perform bulk copy operations
...
Рейтинг: 0 / 0
Applications can perform bulk update, delete, fetch, or insertion operations on
    #32035371
Фотография Алексей
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Кто нибудь делал update?
...
Рейтинг: 0 / 0
Applications can perform bulk update, delete, fetch, or insertion operations on
    #32035373
Tulkin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Note : The ODBC SQLBulkOperations function has no relationship to the SQL Server bulk copy functions
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Applications can perform bulk update, delete, fetch, or insertion operations on
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]