|
Коварство экзамена 70-229: Trigger OR IMPLICIT TRANSACTION?
|
|||
---|---|---|---|
#18+
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.
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.
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. Ответил С. Уже сомневаюсь - может они мели ввиду триггер, который откатывает все? ... |
|||
:
Нравится:
Не нравится:
|
|||
18.11.2002, 15:27 |
|
|
start [/forum/topic.php?fid=34&fpage=64&tid=1552142]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
30ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
others: | 228ms |
total: | 340ms |
0 / 0 |