|
Вопрос из TestKing 70-229
|
|||
---|---|---|---|
#18+
You have designed the database for a web site that is used to purchase concert tickets. During a ticket purchase, a buyer view a list of available tickets, decides whether to buy the tickets, and then attempt to purchase the tickets. This list of available tickets is retrieved in a cursor. For popular concerts, thousands of buyers might attempt to purchase tickets at the same time. Because of the potentially high number of buyers at any one time, you must allow the highest possible level of concurrent access to the data. How should you design the cursor? A. Create a cursor within an explicit transaction, and set the transaction isolation level to REPEATABLE READ B. Create a cursor that uses optimistic concurrency and positioned updates. In the cursor, place the positioned UPDATE statements within an explicit transaction. C. Create a cursor that uses optimistic concurrency. In the cursor, use UPDATE statements that specify the key value of the row to be updated in the WHERE clause, and place the UPDATE statements within an implicit transaction. D. Create a cursor that uses positioned updates. Include the SCROLL_LOCKS Argument in the cursor definition to enforce pessimistic concurrency. In the cursor, place the positioned UPDATE statements within an implicit transaction. ********************************************************* Я чета не понял, как можно использоавать серверный курсор созданный на T-SQL в Web-приложении? В Web-приложении же например на ASP набор данных выбирается и отдается клиенту. А обновление только через хп или batch'и. Как же в Web-приложении использовать курсор да еще чтобы юзер мог по нем скролировать туды-сюды??? ... |
|||
:
Нравится:
Не нравится:
|
|||
11.12.2003, 09:38 |
|
Вопрос из TestKing 70-229
|
|||
---|---|---|---|
#18+
Имеется ввиду API курсор. Если он динамический то выбирается и отдается клиенту каждая запись в отдельности(при скроллинге) или же пачками, скажем по 25 штук(скока в листбокс за раз влезет.) Magnus ... |
|||
:
Нравится:
Не нравится:
|
|||
11.12.2003, 17:08 |
|
Вопрос из TestKing 70-229
|
|||
---|---|---|---|
#18+
Так там же ни в одном из ответов ни словом нет об API-курсоре. Все ответы о курсоре созданом на T-SQL... И к тому же обясните пожалуйста как использовать любой из курсоров в WEB-приложении? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.12.2003, 08:54 |
|
|
start [/forum/search_topic.php?author=tanyshka&author_mode=last_topics&do_search=1]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
get settings: |
11ms |
get forum list: |
14ms |
get settings: |
10ms |
get forum list: |
11ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
141ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
others: | 1308ms |
total: | 1579ms |
0 / 0 |