powered by simpleCommunicator - 2.0.46     © 2025 Programmizd 02
Форумы / Сертификация и обучение [игнор отключен] [закрыт для гостей] / Коварство экзамена 70-229: Trigger OR IMPLICIT TRANSACTION?
2 сообщений из 2, страница 1 из 1
Коварство экзамена 70-229: Trigger OR IMPLICIT TRANSACTION?
    #32069042
Фотография jimmers
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
You are a database developer for Southridge Video. The company stores its sales information in a SQL
Server 2000 database. You are asked to delete order records from this database that are more than five
years old. To delete the records, you execute the following statement in SQL query analyzer:
DELETE FROM Orders WHERE OrderDate < (DATEADD (year, -5, getdate()))
You close SQL Query Analyzer after you receive the following message:

Код: plaintext
1.
( 29979  row(s) affected)


You examine the table and find that the old records are still in the table. The current connection
properties are shown in the exhibit.

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
concat_null_yields_null ON
arithabort ON
ansi_nulls ON
ansi_nulls_dflt ON
ansi_padding ON
ansi_warnings ON
implicit_transactions ON
quoted_identifier ON


A. Delete records in tables that reference the Orders table.
B. Disable triggers on the Orders table.
C. Execute a SET IMPLICIT_TRANSACTIONS OFF statement.
D. Execute a SET CURSOR_CLOSE_ON_COMMIT ON statement.
E. Change the logic in the DELETE statement.


Ответил С. Уже сомневаюсь - может они мели ввиду триггер, который откатывает все?
...
Рейтинг: 0 / 0
Коварство экзамена 70-229: Trigger OR IMPLICIT TRANSACTION?
    #32069057
Фотография Shura_M
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
конечно, С.
implicit транзакции надо руками коммитить, на то они и implicit. а разрыв соединения при незакоммиченной транзакции - сами знаете что ..
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Сертификация и обучение [игнор отключен] [закрыт для гостей] / Коварство экзамена 70-229: Trigger OR IMPLICIT TRANSACTION?
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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